We help IT Professionals succeed at work.

Pass OpenArgs from form to subreport

dailymeat
dailymeat asked
on
I saw this posting by:stevbePosted on 2004-06-02 at 13:21:47ID: 11216407
I did the new module Public MyArgs As Variant.
I wrote in the button that opens up the report:
MyArgs=ProductName  (productname being the variant) and it gives me an error:
"Expected Variable Or Procedure, Not Module"
Comment
Watch Question

What is the name of the module?
Top Expert 2016
Commented:
if you named the module  "MyArgs"

rename it to  modMyArgs
Distinguished Expert 2017

Commented:
Keep in mind that the subreport loads before the main report so the OpenArgs will not be immediately available.