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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DCount in Query

Status
Not open for further replies.

jjb373

MIS
Feb 4, 2005
95
US
Is there any way to get a DCount in a query? I have a parameter in the query. I keep getting the result of #Error

Here is my formula:
=DCount("[Prospective Documents]","Late",([Prospective Documents]-[Date of Appointment])>1)

My query askes for a start date and end date.

Or can I somehow refer to those two parameters in my formula where clause section???
 
I forgot to mention, this formula is in a textbox in my report footer.
 
Post the entire query, lets see...
You are getting error because ([Prospective Documents]-[Date of Appointment])>1 is not enclosed in bouble-quotes in DCount.

Regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top