A
Andrew Meador - ASCPA, MCSE, MCP+I, Network+, A+
I have created a report in Access 2007. This report needs to
display records between two dates entered by the user. I put two text
boxes on the report so I can enter the start and end dates - I set
them to use an input mask of 'short date' format. The problem is that
when I enter anything in these text boxes, as soon as the field looses
focus, the text is cleared out - thus the text box is left blank. I
have a button on the report that calls the requery method of the
report and also, as a test, displays the values of these text boxes in
a msgbox, but it also shows they are blank. What is wrong? I can set
the values by code for the text boxes in the button's click event
before calling the requery method, and the report runs with the proper
data and also shows the text in those text boxes - I just can't seem
to type values into these text boxes.
If this helps, this report is based on a saved SQL Query that I
edited to pull the date range from these text boxes in this report.
Please help!
Thanks!
Andrew
display records between two dates entered by the user. I put two text
boxes on the report so I can enter the start and end dates - I set
them to use an input mask of 'short date' format. The problem is that
when I enter anything in these text boxes, as soon as the field looses
focus, the text is cleared out - thus the text box is left blank. I
have a button on the report that calls the requery method of the
report and also, as a test, displays the values of these text boxes in
a msgbox, but it also shows they are blank. What is wrong? I can set
the values by code for the text boxes in the button's click event
before calling the requery method, and the report runs with the proper
data and also shows the text in those text boxes - I just can't seem
to type values into these text boxes.
If this helps, this report is based on a saved SQL Query that I
edited to pull the date range from these text boxes in this report.
Please help!
Thanks!
Andrew