When using reports, I find it much easier to have no filtering in the query.
The use the Where argument of the OpenReport method to do the filtering. If
you pass an empty string, then no filtering will apply. That is useful when
the user is allowed to select criteria but does not. In the example below,
we want to filter the report for records that fall between two dates. The
query field would be [IncidentDate].
strWhere = "[IncidentDate] BETWEEN #" & Me.StartDate & "# AND #" &
Me.EndDate & "#"
Docmd.OpenReport "MyReport", , , strWhere
--
Dave Hargis, Microsoft Access MVP
newuser said:
How do i go about adding a parameter query to a report deisgned to make
labels so that i get certain criteria in the report?? have tried record
source haven't had much luck with it.
Thanks