Hello,
I am working in Access 2003, vba 6.5
In Form1, the user clicks one of two buttons, each button sets a different value to a public variable called manual_or_auto.
In Form2, the procedure of the Save Record button does stuff based on the value of manual_or_auto.
The only way I got this to work was by adding a new standard module and declaring manual_or_auto as global there. When I tried to declare the variable as Public in either the Form1 or Form2 code, it wouldn't work. The value from the Form1 procedure never got attached to the variable. The immediate window kept printing it as blank.
Why didn't a public declaration in either of these modules work? Shouldn't public work everywhere?
Thank you.
I am working in Access 2003, vba 6.5
In Form1, the user clicks one of two buttons, each button sets a different value to a public variable called manual_or_auto.
In Form2, the procedure of the Save Record button does stuff based on the value of manual_or_auto.
The only way I got this to work was by adding a new standard module and declaring manual_or_auto as global there. When I tried to declare the variable as Public in either the Form1 or Form2 code, it wouldn't work. The value from the Form1 procedure never got attached to the variable. The immediate window kept printing it as blank.
Why didn't a public declaration in either of these modules work? Shouldn't public work everywhere?
Thank you.