Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Access Forum > Show username by Robert Freeman
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Show username
Robert Freeman 
     
2 years ago
Hi. I have a login form table that lists a UserName, Password and UserFullName fields.
I have login form and the database working and TempVars is used to determine the user's access level to the various database elements.
However, I'm drawing a blank on how to display the UserFullName in a field on the database main form based on the UserName held in TempVars.
Any help would be appreciated. Thanks.
Adam Schwanz  @Reply  
           
2 years ago
Just set the textbox control source =TempVars('yourname')
Use double quotes though, phone wont post proper double quotes.
Robert Freeman OP  @Reply  
     
2 years ago
Hi. I have already done that and, very correctly, it shows the 'UserName'. The user name could be Admin but what I want to show on the form is the 'actual' person's name which is stored in another field of the UserName Table. So, for example, if the 'Admin' is the user I want to show their proper name e.g. James Kirk (where have we seen that before 😂).
Adam Schwanz  @Reply  
           
2 years ago
=DLOOKUP("RealName","UserT","UserName=""" & TempVars("UserName") & """")
DLookup
Robert Freeman OP  @Reply  
     
2 years ago
Adam. Thank you, that works fine. For some reason I have this mental block with DLOOKUP. I will watch Richard's videos again. Regards. Bob

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 11/15/2026 8:40:50 AM. PLT: 0s