Text Boxes Storing Logged In User Information on Form

AlexB123

Board Regular
Joined
Dec 19, 2014
Messages
207
I'm working on several databases that manage user logins via storing the information entered in to the logon form on the "main" form page of my db's. For example:

Code:
inUserAccess = DLookup("UserAccess", "tblUsers", "[UserID]=" & txtUser)
    inUserName = DLookup("UserName", "tblUsers", "[UserID]=" & txtUser)
    inUserInitials = DLookup("UserInitials", "tblUsers", "[UserID]=" & txtUser)
    inUserID = txtUser
    
    
    [Forms]![frmMain].[txtUserAccess] = inUserAccess
    [Forms]![frmMain].[txtUserName] = inUserName
    [Forms]![frmMain].[txtUserInitials] = inUserInitials
    [Forms]![frmMain].[txtUserID] = inUserID

And

Code:
Forms!frmMain.txtMainWelcome = "You are logged in as: " & vbNewLine & Me!cmbName.Column(1)
        Forms!frmMain.txtMainUser = Me!cmbName.Column(0)
        Forms!frmMain.txtMainUserAccess = Me!cmbName.Column(2)

How many entries can a text box on a form store? Currently, the db's seem to handle multiple users, but I am unsure as to how. There is a "Logged_In" column on a user table in both db's, but access seems to depend on the storage of the data. I am considering a table that stores this information instead, and am trying to learn more about how this works. Can anyone shed some light or direct me in further research?

Many thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top