Passing values from popup to main form

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 ?
 
B

Bruce M. Thompson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top