Hi, When I open a report, I want to use the filter in current Form.
Code:
If me.flterOn then
strFilter=Me.Filter
end if
Docmd.OpenReport myReport,acPreview,strFilter
The report displays all record regardless my filter.
If I put the strFilter in WhereCondition clause, it works.
Code:
Docmd.OpenReport myReport,acPreview,,strFilter
Could you tell me why? Thanks.
??VBA and ACCESS ??