G
Guest
I have a parameter query that I find does not work if the relevant date field
(i.e. in the table) is left blank. The query only works when a date is
entered in all records.
Any suggestions welcome (Thanks for the help thus far Allen Browne!). A
portion of the sql query is pasted below;
WHERE (Company.Company Like Forms![Find ILS Invoice]!Company & "*")
And (Manufacturer.Manufacturer Like Forms![Find ILS Invoice]!Manufacturer &
"*")
And (AuditCAP.CAPNumber Like Forms![Find ILS Invoice]!CAP & "*")
And (Company.Company Like Forms![Find ILS Invoice]!Company & "*")
And ((Forms![Find ILS Invoice]!StartDate) Is Null) Or (Forms![Find ILS
Invoice]!EndDate Is Null) Or (InvoiceILS.[London Invoice Date] Between
Forms![Find ILS Invoice]!StartDate And Forms![Find ILS Invoice]!EndDate)
(i.e. in the table) is left blank. The query only works when a date is
entered in all records.
Any suggestions welcome (Thanks for the help thus far Allen Browne!). A
portion of the sql query is pasted below;
WHERE (Company.Company Like Forms![Find ILS Invoice]!Company & "*")
And (Manufacturer.Manufacturer Like Forms![Find ILS Invoice]!Manufacturer &
"*")
And (AuditCAP.CAPNumber Like Forms![Find ILS Invoice]!CAP & "*")
And (Company.Company Like Forms![Find ILS Invoice]!Company & "*")
And ((Forms![Find ILS Invoice]!StartDate) Is Null) Or (Forms![Find ILS
Invoice]!EndDate Is Null) Or (InvoiceILS.[London Invoice Date] Between
Forms![Find ILS Invoice]!StartDate And Forms![Find ILS Invoice]!EndDate)