DBL
02-06-2003, 04:38 AM
I've got the following where clause on a print button to filter a report as it opens:
DoCmd.OpenReport "rptAirTransportInvoice", acViewPreview, , "[JODeptDate] " & " between" & F & " and " & T & ""
But I want to add an extra bit so that it includes any records that haven't already been invoiced, regardless of the departure date. I tried
DoCmd.OpenReport "rptAirTransportInvoice", acViewPreview, , "[JODeptDate] " & " between" & F & " and " & T & " Or [jInvoiced] = 0"
but that didn't work.
Any ideas?
Thanks
DoCmd.OpenReport "rptAirTransportInvoice", acViewPreview, , "[JODeptDate] " & " between" & F & " and " & T & ""
But I want to add an extra bit so that it includes any records that haven't already been invoiced, regardless of the departure date. I tried
DoCmd.OpenReport "rptAirTransportInvoice", acViewPreview, , "[JODeptDate] " & " between" & F & " and " & T & " Or [jInvoiced] = 0"
but that didn't work.
Any ideas?
Thanks