Computer Learning Zone CLZ Access Excel Word Windows

Education should light a fire within us to improve us and help our world.

-Sarah Josepf
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Code Vault > Access VBA > DLookupPlus >
DLookupPlus
By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   4 years ago

DLookupPlus will allow you to return a sorted list of items from any table or query, based on your criteria and specified delimiter.

Why DlookupPlus?

Let's say you have a table of sales reps, and a table of states they cover:

SalesRepT

SalesRepID SalesRepName
1 Joe
2 Sue
3 Bill

StateT

State SalesRepID
NY 1
PA 1
NJ 1
CA 2
TX 2
FL 3

Now you could make a query that shows all of the sales reps and the states the represent like this:

SalesRepName StatesCovered
Joe NJ, NY, PA
Sue CA, TX
Bill FL

Usage

In your query, the call to DLookupPlus would look like this:

StatesCovered: DLookupPlus("State","StateT","SalesRepID=" & SalesRepID, "State")

Class

Design of this function is covered in Access Developer 17, Lesson 3.

Code Only

You can get the source code for this function as a Gold or Platinum Member.

If you have any questions, post them below.

 

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 DLookupPlus
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: 5/21/2024 6:39:28 AM. PLT: 1s
Keywords: code vault access dlookupplus dlookup list concatenate rows concatrows concatenate multiple records  PermaLink  DLookupPlus