M
maud
I have a form that generates several reports. One of the options I
have is to generate a report based on date between two dates. I have
two text boxes on the form to specify these dates and a button to
generate the report with the following code:
strWhere = "([DueDate] between Forms![frmReports]!BeforeD and Forms!
[frmReports]!AfterD )"
DoCmd.OpenReport "rptAll", acViewPreview, , strWhere
However this always generates an empty data set regardless of the
dates I use. For example using BeforeD "1/1/2010" and AfterD
"1/1/2000" (or switching these). Any ideas?
thanks!
have is to generate a report based on date between two dates. I have
two text boxes on the form to specify these dates and a button to
generate the report with the following code:
strWhere = "([DueDate] between Forms![frmReports]!BeforeD and Forms!
[frmReports]!AfterD )"
DoCmd.OpenReport "rptAll", acViewPreview, , strWhere
However this always generates an empty data set regardless of the
dates I use. For example using BeforeD "1/1/2010" and AfterD
"1/1/2000" (or switching these). Any ideas?
thanks!