Passing values from popup to main form

  • Thread starter Thread starter thriveni
  • Start date Start date
T

thriveni

I use access 2000.
I have a combo box in a pop up modal form and have to pass
that value back to the main form. I tried declaring a
public variable in the click event of the main form;s
command button, and update the value in the lsotfocus
event of the pop up. but the value does not get passed on.
What am i doing wrong ? Is there any other way to do this ?
 
I use access 2000.
I have a combo box in a pop up modal form and have to pass
that value back to the main form. I tried declaring a
public variable in the click event of the main form;s
command button, and update the value in the lsotfocus
event of the pop up. but the value does not get passed on.
What am i doing wrong ? Is there any other way to do this ?

Declare you public variable in a standard module (a global module, not a module
behind a form or report). Then you can reference that variable from anywhere in
the application.
 
Back
Top