Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
DLookup
David Harnett 
    
5 years ago
Hi, I have 3 tables with relationships. Please see attached diagram. One Customer can have a number of aircraft. One aircraft can have a number of jobs. I have created a form to start a new job against an aircraft. The form is based on the table "JobInvoiceT".I am having trouble retrieving the "CustomerID" from the ACRegisterT, and then displaying the Customer "FirstName" and "LastName" from the "CustomerT" on the new form.
I have tried DLookup and I can get the "CustomerID" onto the form in an unbound TextBox but cant get it into the reduired field on the "JobInvoiceT"
David Harnett OP  @Reply  
    
5 years ago

Adam Schwanz  @Reply  
           
5 years ago
Use a combobox
Adam Schwanz  @Reply  
           
5 years ago
To be more specific, get the values from another table or query, in this case CustomerT.

Bring in CustomerID, Firstname, Lastname

Store that value in the field CustomerID
David Harnett OP  @Reply  
    
5 years ago
The form is based on the Table "JobInvoiceT". The way this form works, is that when starting a new job you select the aircraft registration from a combo box. This find the "ACRegoID" and associated data (as well as the "CustomerID") in the "ACRegisterT". Once selecting the "ACRegoID" I need the associated "CustomerID" to relate back to the "CustomerT" and pick out the names. These need to be displayed, but will not be editable. Ref the Table Diagram attached to this post.
Scott Axton  @Reply  
      
5 years ago
David
You're probably going to have to create a query to use instead of just the JobInvoiceT.  Then the  fields will be available from the CustomerT.
The other alternative is to use DLookup and pull in the required info.
Check out the video:  DLookup

Since you are just displaying the info not displaying it it would be similar to what Richard is doing in the video displaying the phone
Scott Axton  @Reply  
      
5 years ago
Wow = fingers out typing the brain.  Not hard to do but still....
I meant:
Since you are displaying the info not storing it.

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: 7/31/2026 6:52:30 PM. PLT: 0s