954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

VBA CODE in access

i`m working with access 2007, i have two tables SYS_USER, ACCOUNT TYPE.
the first table contains (username, password, first name, last name).
the second table is only one field (manager, admin, agent).
there are two forms (administration, login), the administration form adds a new user, the login form makes user log in to the system.
the code is working perfectly, but i`m just missing something, i need a code that checks if the user is admin, agent, or manager. then according to the selection a msgbox appears "hi admin", "hi manager", "hi agent".

i attached the code, the login screen, the admin screen.
thanks in advance.

Attachments New_Microsoft_Office_Word_Document.docx (10.46KB) Create_New_User.png 17.51KB Login_Screen.jpg 46.6KB
deadelgabar
Light Poster
31 posts since Apr 2010
Reputation Points: -1
Solved Threads: 0
 

You need to add USER_TYPE column to SYS_USER table.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: