Tezcatlipoca
Registered User.
- Local time
- Today, 22:13
- Joined
- Mar 13, 2003
- Messages
- 246
Hi all,
Right, I'm currently in the early stages of building a multi-user database. My login code works perfectly, allowing me to setup as many users as I want in a table, plus passwords, and have those users login...
...what I have yet to get, and am having trouble with, is the ability to pass the username and password the user enters into the initial form into other forms.
Take a look at my example. there are two users; Quixote and Panza. Both passwords are currently set to 'password'. When the right password is entered, the login form opens the main form. At the moment, the main form consists of nothinfg but a simple text box, and this is the problem area.
Basically, I want a situation where that textbox on the frmMain form is filled out with whatever username the user sucessfully logged in with in the frm Logon form. So Quixote logs in, the box on frm Main should show 'Quixote'; you get the idea.
Can anyone suggest how I can achieve this?
Right, I'm currently in the early stages of building a multi-user database. My login code works perfectly, allowing me to setup as many users as I want in a table, plus passwords, and have those users login...
...what I have yet to get, and am having trouble with, is the ability to pass the username and password the user enters into the initial form into other forms.
Take a look at my example. there are two users; Quixote and Panza. Both passwords are currently set to 'password'. When the right password is entered, the login form opens the main form. At the moment, the main form consists of nothinfg but a simple text box, and this is the problem area.
Basically, I want a situation where that textbox on the frmMain form is filled out with whatever username the user sucessfully logged in with in the frm Logon form. So Quixote logs in, the box on frm Main should show 'Quixote'; you get the idea.
Can anyone suggest how I can achieve this?