Hi All
Im sure this is something stupid but I cant work it out
I have a report with a control on it. The control source is the following DCount statement
=DCount("[category]","TBL_HELPLINE","[start_date] >= #02/01/2005# AND [start_date] <= #02/28/2005# And [category]=" & category.Value)
this counts the number of records in the table "TBL_HELPLINE" that have a start date anytime withing the month of february and also has a category the same as the catergory in another field
This statement works fine as long as there are no records with the same startdate as either of the 2 dates specified in the statement.
If there are records in the table with these 2 dates then the count returned is incorrect.
Can anyone see what I am doing wrong
Many thanks
wambaugh
Im sure this is something stupid but I cant work it out
I have a report with a control on it. The control source is the following DCount statement
=DCount("[category]","TBL_HELPLINE","[start_date] >= #02/01/2005# AND [start_date] <= #02/28/2005# And [category]=" & category.Value)
this counts the number of records in the table "TBL_HELPLINE" that have a start date anytime withing the month of february and also has a category the same as the catergory in another field
This statement works fine as long as there are no records with the same startdate as either of the 2 dates specified in the statement.
If there are records in the table with these 2 dates then the count returned is incorrect.
Can anyone see what I am doing wrong
Many thanks
wambaugh