I have a form for every report in this latest database that I use to accept parameters for the underlying query. On the form, I have a command button that launches a calendar module that I got from the Microsoft Office Access 2003: Inside and Out book by John Viescas. The calendar mod basically opens a dialog form, accepts the date chosen by the user, and passes it back to the original form.
When I submit the form, the date doesn't get passed to the underlying query or the expression in the textbox for the report. However, if I manually type the date into the textbox on the form it works fine in both places. I thought that maybe it was because I didn't have a date format on the textboxes, but that didn't help.
Probably should mention that the parameters are primarily for a discharge date range and then the two expressions I mentioned above that are supposed to accept the date parameter from the form.
Form:
Expand|Select|Wrap|Line Numbers
- Textbox #1: BeginningDate
- Textbox #2: EndingDate
Expand|Select|Wrap|Line Numbers
- DischargeDate: Between [Forms]![frmReportDefinition]![BeginningDate] And [Forms]![frmReportDefinition]![EndingDate]
- BeginningDate: [Forms]![frmReportDefinition]![BeginningDate]
- EndingDate: [Forms]![frmReportDefinition]![EndingDate]
Expand|Select|Wrap|Line Numbers
- Textbox #1 Name: Title
- Textbox #1 Control Source: ="Report Definition" & Chr(13) & Chr(10) & [BeginningDate] & " to " & [EndingDate]
Thanks,
beacon