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 Expert 10    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
DLOOKUP in Tables
Kent Jamison 
    
4 years ago
I just finished Expert Course 10.  Can you use DLOOKUP to pull a calculated or concatenated field (whose value is stored in one field) and pull that value into another table?  Could this save having to recalculate the value each time?  
--Kent Jamison
Adam Schwanz  @Reply  
           
4 years ago
If you are storing the value in a table, you can dlookup the value from the table. If it's a calculation in a query, you can still dlookup it but it will have to run the query calculation to find out what that value is, so it wouldn't save you time in that regard.
Kent Jamison OP  @Reply  
    
4 years ago
But can you DLOOKUP a value from ANOTHER table and pull it into the current table?
Scott Axton  @Reply  
        
4 years ago
Yes.   Take a look at this page in the Glossary
Alex Hedley  @Reply  
           
4 years ago
Why do you need to?
Why not just create a query to join the two Tables.
Adam Schwanz  @Reply  
           
4 years ago
What do you mean pull it into the current table? If you want to make a form and the default value or a button or something pull a value from another table and set that fields value to that, then yes you can. Likewise you could run an update query with dlookup and add values between tables.

Say table 1 is an orderdetail table, has part number and price in it among other fields.
Table 2 is the parts table, has the part number and price in it.
You can DLOOKUP the price from table 2 based on the part number and automatically put that price into table1 for the price of that part on that order kind of thing.

Kent Jamison OP  @Reply  
    
4 years ago
Let me provide an example. Sometimes, for convenience sake, it's helpful to pull in data from another table to understand what you're looking at.  I have an employee db, with basic employee data (e.g., names, phone numbers, emails, etc.) in my main Employee table, but the additional employee particulars are stored in a separate table (e.g., how long they've worked for the company).  When reviewing that additional info table, it sure would be nice to see the LastName next to the AdditionalInfoID of an employee just so you know what you're looking at and info belongs to whom.  How do I lookup and pull the LastName from the main EmployeeT into the AdditionalInfoT?  No one can remember what customer has what ID when you have hundreds of employees in a table.  
Please advise.
Kent J.
Richard Rost  @Reply  
          
4 years ago
I see what you're saying, Kent, but in that case you wouldn't "pull" the additional info data into your actual employee table. You don't want to have information copied in two places if you can avoid it. Usually. In this case, just use a DLookup function in an unbound form field.
Richard Rost  @Reply  
          
4 years ago
"How do I lookup and pull the LastName from the main EmployeeT into the AdditionalInfoT?" - I would make a button that opens the Additional form from the Employee form and set the EmployeeID as a default value. Just like I do in Contacts and Invoicing.
Kent Jamison OP  @Reply  
    
4 years ago
Thanks Richard.  Makes sense.  I'll review those videos today.  I'm gathering in Access you always review data in forms, not tables.  Correct?  The one issue I have with reviewing records in forms is forms only let you review data one record at a time, unless I'm missing some trick.  I find using tables is often faster when COMPARING records because you can see multiple records at once.  That's where my ask is coming from.  Your thoughts?
--Kent J.
Kevin Robertson  @Reply  
          
4 years ago
Kent,

Use a Continuous Form to view multiple records on the form.

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

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 1:45:17 AM. PLT: 0s