G
Guest
Hi
Sorry to bother you with simple questions, but it's a long time since I did
Access VBA...
I have a main form which is kicked off by the Autoexec macro. But before
this form is opening, I'd like to:
1) open another form that will ask the user to choose a department from a
combo box. When the user has chosen, he will close that form
2) get the value of the chosen department from that form
I have 2 problems:
a) I can't seem to find the syntax that will load the other form from the
main form. I've used application.Forms!Form_OtherForm.Load, but that
generates an error
b) I don't know how to get the variable that was set in the other form
"passed" to the main form
Can you help me on both issues ? Thanks.
Bernard
Sorry to bother you with simple questions, but it's a long time since I did
Access VBA...
I have a main form which is kicked off by the Autoexec macro. But before
this form is opening, I'd like to:
1) open another form that will ask the user to choose a department from a
combo box. When the user has chosen, he will close that form
2) get the value of the chosen department from that form
I have 2 problems:
a) I can't seem to find the syntax that will load the other form from the
main form. I've used application.Forms!Form_OtherForm.Load, but that
generates an error
b) I don't know how to get the variable that was set in the other form
"passed" to the main form
Can you help me on both issues ? Thanks.
Bernard