HELP!!
I have produced a report where i need to limit the data displayed using parameters. Rather than use a query where the user has to type in values to a parameter pop up box, i want the user to select values from a combo box on a blank form, for example month and year. i then want my report to only display results for the month and year that the user has selected.
At the moment i have created a query to select the required information for the report. For the month and year field i have entered the following criteria;
Forms![ArchiveSelect]![ArchiveMonth]
Forms![ArchiveSelect]![ArchiveYear]
When the report is run, the report pulls in the correct information ignoring any records from months and years not selected, however in the report footer i have some summary calculations. I need to count the number of records, based on particular criteria. The formula seems to count every record genereated by the query, ignoring the month and year parameters. How do i get the formula to count records only where the month and year match what the user originally entered on the form?
The formula i have been using is;
=DCount("[Child_ID]","Archive Query","[Twin_track] = Yes"
This formula as it stands is counting too many records, i want it to only count records where the Month & Year in the query = the month & Year entered on the form by the user.
Can anyone offer any suggestions???
I have produced a report where i need to limit the data displayed using parameters. Rather than use a query where the user has to type in values to a parameter pop up box, i want the user to select values from a combo box on a blank form, for example month and year. i then want my report to only display results for the month and year that the user has selected.
At the moment i have created a query to select the required information for the report. For the month and year field i have entered the following criteria;
Forms![ArchiveSelect]![ArchiveMonth]
Forms![ArchiveSelect]![ArchiveYear]
When the report is run, the report pulls in the correct information ignoring any records from months and years not selected, however in the report footer i have some summary calculations. I need to count the number of records, based on particular criteria. The formula seems to count every record genereated by the query, ignoring the month and year parameters. How do i get the formula to count records only where the month and year match what the user originally entered on the form?
The formula i have been using is;
=DCount("[Child_ID]","Archive Query","[Twin_track] = Yes"
This formula as it stands is counting too many records, i want it to only count records where the Month & Year in the query = the month & Year entered on the form by the user.
Can anyone offer any suggestions???