I'm trying to display a report based on a date range, the syntax is:
rpt.SelectionFormula = "{Barrier_Test.Date} >= #" & getFromDate & "# And {Barrier_Test.Date} <= #" & getToDate & "# and {Barrier_Test.Type} = 'O'"
this selection formula causes an error
Error in formula <Record_Selection>.
'{Barrier_Test.date} >= #28/03/2001 And {Barrier_Test.Date} <= #07/12/2001#
A number, currency amount, boolean or string is expected here.
Can someone help here please.
TIA
Crasher
rpt.SelectionFormula = "{Barrier_Test.Date} >= #" & getFromDate & "# And {Barrier_Test.Date} <= #" & getToDate & "# and {Barrier_Test.Type} = 'O'"
this selection formula causes an error
Error in formula <Record_Selection>.
'{Barrier_Test.date} >= #28/03/2001 And {Barrier_Test.Date} <= #07/12/2001#
A number, currency amount, boolean or string is expected here.
Can someone help here please.
TIA
Crasher