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!

DCOUNT GIVES ALL

Status
Not open for further replies.

Angelique

Technical User
Mar 9, 2001
127
AU
DCount working fine except it is giving me all the occurrences in the table and I need the report to display only those between a start date and finish date.

Unbound textbox control source:
=DCount("[Status]", "Training Details", "[Status] ='Cancelled'")

Report record source: qryTrainingDetails
SELECT * FROM [Training Details] where ((([Training Details].[Date of Training]BETWEEN [Enter Start Date] and [Enter End Date])));

Any ideas? Joe you seem to get me closer each time!


Angelique
 
=DCount("[Status]", "Training Details", "[Status] ='Cancelled' And ([Date of Training] BETWEEN #" & [Enter Start Date] & "# And #" & [Enter End Date] & "#)")

Aivars
 
Thanks for the help.

No syntax error but get #Error with this! any ideas why?


Angelique
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top