OpenArgs Used in Subform

G

Guest

I am opening a report from a form using openargs:
DoCmd.OpenReport stDocName, acViewPreview, "PublistLayoutFilter", , , stArgs

I want to use the openargs for a text box in a subreport linked to the
report, but I keep getting a run-time error. I suspect I am not correctly
referencing the text box in the subreport...?

This is the code in the report:
Me![PublistHeader].Report![Order Form Header 01]![MMYY] =Me.OpenArgs

Any help would be appreciated.
 
A

Allen Browne

The simplest way to do this would be to include a text box on the main
report, with these properties:
Control Source =[OpenArgs]
Name txtOpenArgs
Visible No

Then put a text box in the subreport, and set its ControlSource to:
=[Parent]![txtOpenArgs]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Paasing an array in OpenArgs 3
OpenReport where condition with openargs 1
OpenArgs problem 8
OpenArgs Problem 2
Access OpenArgs in Access 2010 failing 0
stuggling with OpenArgs 3
OpenArgs problem I think 2
OpenArgs question 2

Top