S
Sunny
On user interface form I am asking transaction date range, and I would like
to set these dates as filter condition on filter property of report.
In open event of Report following code works fine.
Me.Filter = "TrxDate BETWEEN #" & Forms("Rpt1").txtStartDate & "# AND #" &
Forms("Rpt1").txtEndDate & "#"
but
"TrxDate BETWEEN #" & Forms("Rpt1").txtStartDate & "# AND #" &
Forms("Rpt1").txtEndDate & "#"
on Filter property of report doesnt work. It gives me error, runtime error
'3075', "Invalid use of '.', '!', or '()' in query expression.
Can anyone help meto find out what am i missing?
Note: I dont want to use filter on open event becuase this report can be
used as sub report.
Thanks.
to set these dates as filter condition on filter property of report.
In open event of Report following code works fine.
Me.Filter = "TrxDate BETWEEN #" & Forms("Rpt1").txtStartDate & "# AND #" &
Forms("Rpt1").txtEndDate & "#"
but
"TrxDate BETWEEN #" & Forms("Rpt1").txtStartDate & "# AND #" &
Forms("Rpt1").txtEndDate & "#"
on Filter property of report doesnt work. It gives me error, runtime error
'3075', "Invalid use of '.', '!', or '()' in query expression.
Can anyone help meto find out what am i missing?
Note: I dont want to use filter on open event becuase this report can be
used as sub report.
Thanks.