DCount Mystery

G

George R

The following data source in an unbound text box in a report footer produces
"0" on my PC but "Err" on the client's PC when the underlying query has no
records. Both PCs use Access 07:
=DCount("ClientID","qryGradsCurYr-1")
The underlying query is:
SELECT tblClients.ClientID, tblActivities.EventNum, tblActivities.DateOfAct
FROM tblClients INNER JOIN tblActivities ON tblClients.ClientID =
tblActivities.ClientID
WHERE (((tblActivities.EventNum)=4) AND ((tblActivities.DateOfAct) Between
([Forms]![frmDateParameters].[BeginDate]-365) And
([Forms]![frmDateParameters].[EndDate]-365)));
I will try =Nz(DCount("ClientID","qryGradsCurYr-1")) when I get back to the
client's PC, but what could make this difference between the two PCs?
Thank you for your consideration.
 
E

Evi

Bet it's his References (open a module, go to Tools, References. Compare the
References on your machine to his.
Evi
 

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

Sum in Report Errors 3
Filtering form 1
Ranking fields in a report 0
DCount Error 6
Query Question 3
Parameter Query Problem 2
Conditional Counts in Textbox Controls 1
BUILDING UNION QUERY 10

Top