nosaj_ccfc
Registered User.
- Local time
- Today, 16:31
- Joined
- Aug 27, 2008
- Messages
- 12
Hello all,
Firstly I have done a searhc here on this topic, and have found some information to help me, but am still fairly stuck. My VB code knowledge is fairly limited.
I have in my database a login form where users are either Admin or Normal. I wish to change the startup propertied in VB depending on who logs in.
My solution in psuedocode
Am I being to ambitious thinking this code can be implemented in an OnClick event of a button?
Any help would be much appreciated.
Thanks,
nosaj
Firstly I have done a searhc here on this topic, and have found some information to help me, but am still fairly stuck. My VB code knowledge is fairly limited.
I have in my database a login form where users are either Admin or Normal. I wish to change the startup propertied in VB depending on who logs in.
My solution in psuedocode
Code:
When Enter button is clicked
If User = Admin Then
StartupForm = "Switchboard"
StartupShowDBWindow = True
ElseIf User = Normal Then
StartupForm = "Switchboard"
StartupShowDBWindow = False
AllowFullMenus = False
AllowSpecialKeys = False
EndIf
Am I being to ambitious thinking this code can be implemented in an OnClick event of a button?
Any help would be much appreciated.
Thanks,
nosaj