I am working in Access 2007. I am also a fairly new Access user.
I have a report whose record source is a query that needs parameters (beg date and end date). I need to be able to display these dates on the report. I found another thread (that is closed now) explaining how to do this. These are the steps it listed:
(1) Make a form that has textboxes for you to input the values of the parameters you will use for your query. Label the textboxes appropriately so users know what they're entering.
(2) Put a command button on the form that calls the report you want.
(3) In the query, make sure the parameters are pointing the textboxes on the form (e.g., forms![formname]![textbox]).
(4) In the report, where you want to reference the values of the parameters, just make the same reference as you did in the query: forms![formname]![textbox]
(5) Once you've set it up this way, the report should be opened only by opening the form and clicking on the command button.
I have gotten up to step 3. But when I run the form, it shows #Name? in the textbox. How do I fix that?
TIA,
~RLG
I have a report whose record source is a query that needs parameters (beg date and end date). I need to be able to display these dates on the report. I found another thread (that is closed now) explaining how to do this. These are the steps it listed:
(1) Make a form that has textboxes for you to input the values of the parameters you will use for your query. Label the textboxes appropriately so users know what they're entering.
(2) Put a command button on the form that calls the report you want.
(3) In the query, make sure the parameters are pointing the textboxes on the form (e.g., forms![formname]![textbox]).
(4) In the report, where you want to reference the values of the parameters, just make the same reference as you did in the query: forms![formname]![textbox]
(5) Once you've set it up this way, the report should be opened only by opening the form and clicking on the command button.
I have gotten up to step 3. But when I run the form, it shows #Name? in the textbox. How do I fix that?
TIA,
~RLG