Pass OpenArgs from form to subreport

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"
dailymeatAsked:
Who is Participating?
 
Rey Obrero (Capricorn1)Commented:
if you named the module  "MyArgs"

rename it to  modMyArgs
0
 
MacroShadowCommented:
What is the name of the module?
0
 
PatHartmanCommented:
Keep in mind that the subreport loads before the main report so the OpenArgs will not be immediately available.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.