ErnieMcCracken
Technical User
I have the following variable defined in a module:
Public MyVar as String
On my form, MyVar is set to either "dog" or "cat".
On the report header, I want the value of PublicVar to appear in a text box. So I set the control source of the text box to:
=[PublicVar]
right? --- wrong! This gives me #Error
I also tried:
= [Forms]![Form1]![MyVar]
Still....no dice. Anyone please help! This should not be hard, right?
Public MyVar as String
On my form, MyVar is set to either "dog" or "cat".
On the report header, I want the value of PublicVar to appear in a text box. So I set the control source of the text box to:
=[PublicVar]
right? --- wrong! This gives me #Error
I also tried:
= [Forms]![Form1]![MyVar]
Still....no dice. Anyone please help! This should not be hard, right?