Hi, I am working with MS Access 2003 and I have a parameter query
that request beginning and ending dates. I would like to place those
date entered by the user on a report. Would someone please tell me
how I can do this. The dialog boxes that request the date information
don't have names that I can refer to. Thanks in advance for the help.
Loren
Hands down the easiest way is to have the user enter the dates into an
unbound form, and then you can put a button on the form that opens the
report. And then in the report, you can set the rowsource for the
control to point at the form...
=Forms![Name of My Form]![Name of StartDate Control]
for example... here's one I just did...
I have an UNBOUND textbox control on my report with the following
control source
=Forms!Form1!txtShowMeOnReport
Form1 is the name of the form. (If you have spaces in your report name
or control name, you'll have to surround it with square brackets)
=Forms![Form 1]![txtShowMeOnReport]
the only other trick is that "Form 1" or whatever form contains the
textbox you want to show in your report must be open when you open the
report. The easiest way to do it is to open your form in normal mode,
then open your report in design mode. Then you can just use the
textbox wizard, and select the forms folder, choose your open form,
and then select the control on your form, and the wizard does the
rest... (or you could just type in the controlsource...)
HTH