Passing Values From Hidden Forms

  • Thread starter Thread starter Patrick
  • Start date Start date
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
 
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?
 
Back
Top