Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / July 2006

Tip: Looking for answers? Try searching our database.

Query Results???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harry Moore - 23 Jul 2006 16:04 GMT
Why am I getting different query results from these 2 queries:

Select pname, dservice from visits order by pname; returns 13,749 records.

Select pname, dservice from visits where "t" ="t" order by pname; returns
25,620 records.

The second query returns the correct number of records.  The table is a
linked .dbf table.

Harry
Jerry Whittle - 24 Jul 2006 16:08 GMT
That is strange. Is it doing something like a Distinct without being asked?
Excluding null values?

Try this:

Select Count(*) from visits ;

   and

Select Count(*) from visits where "t" ="t" ;
Signature

Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> Why am I getting different query results from these 2 queries:
>
[quoted text clipped - 7 lines]
>
> Harry
Harry - 24 Jul 2006 17:17 GMT
Select Count(*) from visits ; returns incorrect total
Select Count(*) from visits where "t" ="t" ; returns correct total

This is a linked .dbf table.  If I import the table the queries return
correct results.  Also if I use any valid 'where' clause or 'group by'
clause(other than the first field in the select statement(i.e. pname in this
query) the queries return correct results.

Just goes to show you need to validate your data when dealing with Microsoft
sw.

> That is strange. Is it doing something like a Distinct without being
> asked?
[quoted text clipped - 20 lines]
>>
>> Harry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.