Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Display name based on number
Christian Hood 
    
3 years ago
I would like my subform to show the employee name even tho the underlying table only contains the employee number. I feel confident this is possible -- if I can just be pointed to the correct lesson to watch/buy, that would suffice!
Alex Hedley  @Reply  
           
3 years ago
Christian Hood OP  @Reply  
    
3 years ago
thanks!
Gregory Clancey  @Reply  
    
3 years ago
Yes this has been an issue for me and the topic of several fruitful exchanges with Rich.

Basically, your choices seem limited to utilizing DLookup (which can be slow if multiple TextBoxes are so populated, but usually an easy solution) or creating a query from the bound table which replaces its numeric, foreign key-fields items with string data obtained via tables linked to these keys in the query.

DLookup is my goto choice. After all, generally, when populating a Form's TextBoxes, a slight time lag in completing all fields is of little consequence, and as system hardware gains in operating speed, has become virtually imperceptible.

However, either of these two methods renders the Form's "encoded" TextBoxes incapable of receiving new data -- a need sometimes arising after a Form has fully resolved all fields. I've made elaborate subForm solutions but have basically concluded that the simplest solution is an "edit" CommandButton which opens a Form specifically constructed to supply the original table with the desired key-field alteration. Sometimes, then, I need to REQUERY when returning to the display Form.

At this stage, I don't think there's a set standard, but this is an opportunity to create your most efficient, economical and effective programming solution suited to your situation. Others may have their own preference.
Scott Axton  @Reply  
        
3 years ago
If you are only displaying one employee you may also be able to use the Forms!FormName!FieldName notation in your subform.
Remember they are technically two forms even though one is inside of the other.

Check out the Value From a Form and Value From Subform videos for more info on getting the value.  This way you would not need a DLookup if it is the same employee as in the parent form.
Christian Hood OP  @Reply  
    
3 years ago
thanks much for all of these options... definitely appreciate the feedback :)

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

Next Unseen

 
New Feature: Comment Live View
 
 

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: 4/30/2026 7:08:00 AM. PLT: 0s