Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculate total records from two queries

Status
Not open for further replies.

jstarace

IS-IT--Management
Oct 29, 2002
10
US
I am working on my first ACCESS project and have run into a bit of jam. I have created a form showing total number records of different queries. I want to put an additional row on my grid that totals the number of records from two different queries which have criteria defined.

I have written the following expression hoping for the best, but the result returned is the total number of records in the table the two queries are based on, which BTW comes back as a negative number.

=Sum((DCount("*","qryPhoto1")) And (DCount("*","qryComp1")))

Any suggestions would be appreciated.

I just want to display the total number of records from two different queries!

Thanks
 
Try this:

=DCount("*", "qryPhoto1") + DCount("*", "qryComp1")

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top