Login Problem

G

Guest

HEEELLLLPPP! How do I get a textbox to reflect the username after a login on
a different form. I have five forms and I need to have the username name
reflect on each. NB I have a table called users and another called login
which records the user logged in
 
G

Graham R Seach

If all you want is the username, put it in the Registry! The general
syntaxes are:
SaveSetting appname, section, keyname, value
GetSetting(appname, section, keyname, defaultvalue)

To store the username to the Registry:
SaveSetting "myAppName", "Settings", "Username", Me!txtUserName

To retrieve the username from the Registry:
Me!txtUserName = GetSetting("myAppName", "Settings", "Username", "")

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Users in login 3
Locked Records 2
Get User 1
Access Login 3
Access Form Refresh 1
Disable listbox item from being used 4
tables 1
Click on website button with tag "button" 0

Top