I'm to trying to filter the report data in VB.
The report itself is getting data from the Access .mdb and without filtering works just fine...
In the selection formula I have to filter dates
I tried - "{ShipByWO.Ship Date} >= #" & ToDate(D1) & "# And {ShipByWO.Ship Date} <= #" & ToDate(D2) & "#"
where ToDate is a formating function I use for string - to - date formating.
I also tried "{ShipByWO.Ship Date} Between #" & ToDate(D1) & "# And #" & ToDate(D2) & "#"
it did not work.
I get error message "Error in selection formula"
Please, help me with this....
The report itself is getting data from the Access .mdb and without filtering works just fine...
In the selection formula I have to filter dates
I tried - "{ShipByWO.Ship Date} >= #" & ToDate(D1) & "# And {ShipByWO.Ship Date} <= #" & ToDate(D2) & "#"
where ToDate is a formating function I use for string - to - date formating.
I also tried "{ShipByWO.Ship Date} Between #" & ToDate(D1) & "# And #" & ToDate(D2) & "#"
it did not work.
I get error message "Error in selection formula"
Please, help me with this....