HI,
I've built a form which gathers user criteria and from this builds a WHERE clause which is passed to the OpenReport method of DoCmd:
DoCmd.OpenReport "rpt001", acViewPreview, , sReportCriteria
where sReportCriteria denotes the string containing the user criteria.
This works fine, except when I pass Date values. The data is definitely there, and if I type the date criteria directly into a query, data is returned. I've ruled out Regional Settings as a factor too.
Any ideas?
I've built a form which gathers user criteria and from this builds a WHERE clause which is passed to the OpenReport method of DoCmd:
DoCmd.OpenReport "rpt001", acViewPreview, , sReportCriteria
where sReportCriteria denotes the string containing the user criteria.
This works fine, except when I pass Date values. The data is definitely there, and if I type the date criteria directly into a query, data is returned. I've ruled out Regional Settings as a factor too.
Any ideas?