M Mermogoat Registered User. Local time Today, 01:27 Joined Dec 1, 2002 Messages 36 Apr 15, 2003 #1 Can someone give me an example of the use of OpenArgs when opening a report? I have tried it according to the Help file, but it does not work. Thanks
Can someone give me an example of the use of OpenArgs when opening a report? I have tried it according to the Help file, but it does not work. Thanks
A AncientOne Senior Citizen Local time Today, 06:28 Joined Mar 11, 2003 Messages 464 Apr 15, 2003 #2 OpenArgs only works with the OpenForm method of the DoCmd object. (refer to Help). It can't be used with a report.
OpenArgs only works with the OpenForm method of the DoCmd object. (refer to Help). It can't be used with a report.
M Mermogoat Registered User. Local time Today, 01:27 Joined Dec 1, 2002 Messages 36 Apr 15, 2003 #3 Then is there a way to pass text on to a Report that you are opening?
P Pat Hartman Super Moderator Staff member Local time Today, 01:28 Joined Feb 19, 2002 Messages 46,914 Apr 16, 2003 #4 You can create a hidden field on a form and put the value you want to pass there. The report will then be able to obtain the value by referencing the form field.
You can create a hidden field on a form and put the value you want to pass there. The report will then be able to obtain the value by referencing the form field.
M Mermogoat Registered User. Local time Today, 01:27 Joined Dec 1, 2002 Messages 36 Apr 16, 2003 #5 How would I reference the form field? Textbox.value = [form text field] <--what goes in there?
Mile-O Back once again... Local time Today, 06:28 Joined Dec 10, 2002 Messages 11,316 Apr 16, 2003 #6 Forms!frmYourForm!txtYourTextBox
M Mermogoat Registered User. Local time Today, 01:27 Joined Dec 1, 2002 Messages 36 Apr 16, 2003 #7 Thanks for all the help. God bless