Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > DLookup < Markup | Quote, Invoice, Receipt >
DLookup
By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   3 years ago

Use DLookup to Look Up a Value from a Table


 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Join Now

In this video, I'll show you how to use the DLookup function to look up a value from a table or query. We will look up a sales rep's phone number based on his ID.

Mitchell from Akron, Ohio (a Gold Member) asks: Each of my customers have an assigned sales rep. I've got the rep's name displayed in a combo box on the customer form. Is there a way that I could have his phone number appear next to it so I don't have to keep clicking and loading different forms? I tried making the phone number the second column in the sales rep combo box, but people still have to click to open it up to see it, and sometimes people accidentally change the rep. I just want the phone number to appear next to his name in a text box.

Common Formats

  • DLookup("Field", "Domain", "Criteria")
  • DLookup("FirstName", "CustomerT", "CustomerID=5")
  • DLookup("FirstName", "CustomerT", "CustomerID=" & CustomerCombo)
  • DLookup("StateName", "StateT", "StateAbbreviation=""" & State & """")
  • DLookup("OrderID", "OrderT", "OrderDate=#" & LastOrderDate & "#")
  • DLookup("CustomerID", "CustomerT", "FirstName=""" & FN & """ AND LastName=""" & LN & """")

Members

Members will learn how to handle DLookup criteria involving text strings and dates and use NZ to deal with NULL values. We will learn about AND/OR conditions in criteria. We will see how to use DLookup with DMax and DSum to get the date and amount of a customer's most recent order.

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the files from class plus get access to the Code Vault. If you're not a member, Join Today!

Links

Learn More

FREE Access Beginner Level 1
FREE Access Quick Start in 30 Minutes
Access Level 2 for just $1

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates

Resources

Mailing List - Get emails when new videos released
Consulting - Need help with your database
Tip Jar - Your tips are graciously accepted

Questions?

Please feel free to post your questions or comments below or post them in the Forums.

Keywords

microsoft access, ms access, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #instruction, #learn, #lesson, #training, #database, dlookup, dlookup function, dsum, dmax, return a value, look up a value, lookup value, criteria, what is dlookup, argument, getting a value from a table or query, dlookup multiple criteria, dlookup multiple values, dlookup criteria from another table, dlookup query, dlookup error, dlookup with string criteria, dlookup with date

 

Comments for DLookup
 
Age Subject From
5 monthsDLOOKUPKevin Whitthread
12 monthsDLOOKUPWilliam DeGrandis
15 monthsDlookup in continuous formWilliam McDonald
20 monthsRetrieve an ID with DlookupEster Grande
21 monthsSyntax in nonUSA regionsThomas Gonder
21 monthsDlookupScott Buffington
2 yearsDLookup Combo BoxRamona Woitas
2 yearsDlookup ErrorChris Pardy
2 yearsDlookupPlus FunctionAlexis Cao
2 yearsDLookUp With Variable FieldPatrick McCabe
2 yearsDLookup AfterUpdateEdward Mastoloni
3 yearsDLookupChris Nichol
3 yearsDBHorace Martin
3 yearsColumns in Combo boxScott Axton

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to DLookup
Get notifications when this page is updated
 
 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 12/2/2024 3:24:25 AM. PLT: 0s
Keywords: TechHelp Access dlookup function dsum dmax return a value look up a value lookup value criteria, what is dlookup argument getting a value from a table or query dlookup multiple criteria dlookup multiple values dlookup query dlookup error dlookup string  PermaLink  DLookup in Microsoft Access