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 |
Filling in a field for a table using Dlookup
Marc 

16 years ago
(for access 2007)

Thanks a lot in advance for any help you can offer

I've just grasped how to use Dlookup to fill in a form but now i need to know how to take that info and stick it in another table, so say i have a table called table 1 with three fields: ID First Name and Second Name; I have a second table (table 2) which has the same fields and a form that fills in the details for table 2, What I want to be able to do is display data the first and second name of someone from table one by selecting an id, I know how to actually show this using a d lookup like the one below

=DLookUp("[First Name]","Table1","[ID] =" & [Forms]![Table2]![Combo8])


My problem is in finding a way of taking this and then placing the values into table 2


is there an easy way to achieve this for someone with little knowledge of VBA (if VBA required it would be much appreciated for an explanation as to how)

Cheers


Answer from Richard Rost:

This just requires a little AfterUpdate event. Make a form that is bound to table 2, with your combo box that is fed by Table1. When you pick a value, have an AfterUpdate event that looks up the rest of the data and stores them in fields in the form.

See this tutorial for step-by-step instructions:

You can use the DLOOKUP function to look up a specific value from a table or query.

Please see the following FREE video tutorial on my web site for step-by-step instructions on how to use DLOOKUP:

http://599cd.com/tips/access/dlookup-function?key=BlFAlEx

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: 9/30/2026 7:12:47 AM. PLT: 1s