Hi,
I have a MS Access 2003 app where in a Login form OnOpen I run a module which defines a public variable. The variable simply holds the user who has just logged into the database.
OnOpen of Login form:
DoCmd.OpenModule "GlobalVar"
GlobalVar Module
Public iUser as String
When I run the DoCmd.OpenModule "GlobalVar" it opens a VBA window and that window stays open. What command can I run to close is so the user doesn't see it?
Thanks!
I have a MS Access 2003 app where in a Login form OnOpen I run a module which defines a public variable. The variable simply holds the user who has just logged into the database.
OnOpen of Login form:
DoCmd.OpenModule "GlobalVar"
GlobalVar Module
Public iUser as String
When I run the DoCmd.OpenModule "GlobalVar" it opens a VBA window and that window stays open. What command can I run to close is so the user doesn't see it?
Thanks!