RE:
Access 2003
After the user puts in the password to log in, (in frmLogin, I am
displaying the main data entry form. That all works great, but now I
cannot close the Login form (behind the scenes) after the main form has
loaded.
Do I have to shift focus back to frmLogin after the Main form has
loaded? What is the proper syntax for shifting focus back to a form
object that is loaded in the background other than the main data entry
form the user sees?
Here is my current code:
<begin code>
if txtPassword = "xyz" then
' sucessful login...
DoCmd.OpenForm "frmMain"
DoCmd.close acForm, "frmlogin"
Exit Sub
endif
<end code>
Thanx.......
*** Sent via Developersdex
http://www.developersdex.com ***