Passing Values From Hidden Forms

P

Patrick

I am trying to obtain values from a hidden form and use them on another using
the code below. But as far as the code is concerned the frmLogin is not
loaded when its not visible, so the code does not work. How can I obtain
values from a hidden form??

If Not CurrentProject.AllForms("frmLogIn").IsLoaded Then
' It's not open. Do something here
Me.txtUserId = Forms("frmLogIn").Controls("txtUserId")

End If
 
P

Patrick

Just realised, I must be brain dread!! All I need to do is remove the
"NOT". Can this item be deleted or moved elsewhere if it is of any use?
 

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