I have an entry form to select all kinds of conditions.
What I do is accumulate the conditions in a string (WhereCondition) and then invoke it into a report using
DOcmd.Openreport "reportname",,WhereCondition.
What I want to do is get the count of records returned based on the user conditions before invoking the report. (Kind of a filter)
(ie: WhereCondition= " (city = FL) AND DATE Between #" & FromDATE "# And #" & ToDate "#)"
The reason is to get info to the user of how many records where selected before the report get executed.
Please advise.
Thank you.
Dré
What I do is accumulate the conditions in a string (WhereCondition) and then invoke it into a report using
DOcmd.Openreport "reportname",,WhereCondition.
What I want to do is get the count of records returned based on the user conditions before invoking the report. (Kind of a filter)
(ie: WhereCondition= " (city = FL) AND DATE Between #" & FromDATE "# And #" & ToDate "#)"
The reason is to get info to the user of how many records where selected before the report get executed.
Please advise.
Thank you.
Dré