M
Marcus Lloyd
Hi,
(MS Access 2002)
I'm having trouble with report filters.
When applying the filter, the report dosen't show the correct data, this can
vary from the correctly filtered data, no data and partial data using the
same data and filters.
strFilter = "(([VENDOR_CODE]='" & rstVendor!VENDOR_CODE & "') And
([TRANS_DATE]=#" & CurrentDate & "#))"
Reports!RPT_VENDOR_KANBAN_USAGE.Filter = strFilter
Reports!RPT_VENDOR_KANBAN_USAGE.FilterOn = True
The above code is how I set the filter, but I've also tried setting the
filter as follows:
DoCmd.OpenReport "RPT_VENDOR_KANBAN_USAGE", acViewPreview, , strFilter
Both seem to have the same output, sometimes correct, no data and variable
data. Tried formatting the dates to Us and UK but still get the same...
Any advice?
regards
Marcus
(MS Access 2002)
I'm having trouble with report filters.
When applying the filter, the report dosen't show the correct data, this can
vary from the correctly filtered data, no data and partial data using the
same data and filters.
strFilter = "(([VENDOR_CODE]='" & rstVendor!VENDOR_CODE & "') And
([TRANS_DATE]=#" & CurrentDate & "#))"
Reports!RPT_VENDOR_KANBAN_USAGE.Filter = strFilter
Reports!RPT_VENDOR_KANBAN_USAGE.FilterOn = True
The above code is how I set the filter, but I've also tried setting the
filter as follows:
DoCmd.OpenReport "RPT_VENDOR_KANBAN_USAGE", acViewPreview, , strFilter
Both seem to have the same output, sometimes correct, no data and variable
data. Tried formatting the dates to Us and UK but still get the same...
Any advice?
regards
Marcus