Query does not count all records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know I am new at this but seriously, I have a table that has 105,592
records in it. I build a query that works fine until I add the total row in.
Once the total is added and right now I just have it at Group then I end up
missing 1500 records or so from the main data.
Is this because of the Null value?

Thanks,
 
Chris,

Most likely. If you are doing a count to get the number of records,
recommend you do COUNT(*) rather than Count([FieldName]). If you use a field
name, it will not count the NULL values.
 
Chris said:
I know I am new at this but seriously, I have a table that has 105,592
records in it. I build a query that works fine until I add the total row in.
Once the total is added and right now I just have it at Group then I end up
missing 1500 records or so from the main data.
Is this because of the Null value?


Most likely that because a Totals query with nothing but
Group By in the totals row doesn't so anything except
suppress duplicate records in the result dataset. If you
change a the entry to Count in a field that is supposed to
be unique and add a criteria of >1 for that field, you
should see just the records where that field is not unique.
 
Thanks, I will give that a try...

Marshall Barton said:
Most likely that because a Totals query with nothing but
Group By in the totals row doesn't so anything except
suppress duplicate records in the result dataset. If you
change a the entry to Count in a field that is supposed to
be unique and add a criteria of >1 for that field, you
should see just the records where that field is not unique.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Combine Duplicates in Query 0
Count text values in a Access Field 0
Help with a query 3
counting Null fields 3
Access Dcount (multiple criteria) 3
Count and assign 2
Selecting Distinct Records in union query/report 5
SQL query 1

Back
Top