If the Login Form is still Loaded you can refernce the Form to Access its Public Variables, eg.

sUserName = frmLogin.sPublicUserVar

Otherwise, declare the Variable as Global/Public in a Module, this way the Variable can been seen by all Components of your Application.


------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]