Hi,
Looks like a pretty basic thing but I cant get it right.
I am working on a access vba project. This project has two forms. Currently in the vba editor the forms show up as:
Form_Bonus Calculation Main Form and
Form_Form1
I have declared a public variable in the Main Form called Current_Week.
At some stage in the processing, Form_Form1 is displayed. This form only has one textbox and the user is supposed to type a value into it.
I want to transfer this value into the Current_Week variable.
I thought something like this should work:
Form_Bonus Calculation Main Form.current_week
or
Current_Week = form_Form1.text0.value
The first option generates an error while the second option just has a Null in the Current_Week variable.
Is there any help available.
Thanks
Looks like a pretty basic thing but I cant get it right.
I am working on a access vba project. This project has two forms. Currently in the vba editor the forms show up as:
Form_Bonus Calculation Main Form and
Form_Form1
I have declared a public variable in the Main Form called Current_Week.
At some stage in the processing, Form_Form1 is displayed. This form only has one textbox and the user is supposed to type a value into it.
I want to transfer this value into the Current_Week variable.
I thought something like this should work:
Form_Bonus Calculation Main Form.current_week
or
Current_Week = form_Form1.text0.value
The first option generates an error while the second option just has a Null in the Current_Week variable.
Is there any help available.
Thanks