J
Justin
Hi,
I'm trying to set-up a system to automatically display the proper menus to a
user depending on the user's department assignment. I have set the start-up
form for the database to be "frmMain". In the On Activate event for this
form I have placed the code to get the current user name, find the users
department assignment, open the appropriate form/menu and close the form
"frmMain". This all works except the closing of the form "frmMain". Also if
I want to requery the new form I'm openning the system just goes in a
continual loop between "frmMain" and the openned form. I've tried placing
the Close command (including from name) in the De-Active Event, but this
didn't work.
Is there something about the On Activate property that will not allow this?
Any suggestions will be appreciated. Thanks.
Justin
I'm trying to set-up a system to automatically display the proper menus to a
user depending on the user's department assignment. I have set the start-up
form for the database to be "frmMain". In the On Activate event for this
form I have placed the code to get the current user name, find the users
department assignment, open the appropriate form/menu and close the form
"frmMain". This all works except the closing of the form "frmMain". Also if
I want to requery the new form I'm openning the system just goes in a
continual loop between "frmMain" and the openned form. I've tried placing
the Close command (including from name) in the De-Active Event, but this
didn't work.
Is there something about the On Activate property that will not allow this?
Any suggestions will be appreciated. Thanks.
Justin