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 to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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