Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
 

You don't have access to: Remove Multi Select
 
Home > Courses > Access > Developer > D17 > < D16 | D18 >
Access Developer 17

Multi-Select Lists, PDF Export, DLookupPlus


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

          Only $44.99
          Members pay as low as $22.50

Welcome to Access Developer 17. In this course you will learn how to work with multi-select listboxes, including how to remove items from an unbound listbox using reliable methods, how to export individual PDF reports for each customer using recordsets, and how to create a custom DLookupPlus function that returns a comma-separated list of values from related tables. We will discuss best practices for working with recordsets, organizing your exports, and using advanced lookup functions for more flexible reporting.

Lessons

Database Files

Notes

  • Thanks to Sandra for having a backup copy of the Lesson 2 database file after mine got corrupted!

Resources

Lesson Summary

Welcome! Remove Listbox Items & Export PDF - Welcome to Microsoft Access Developer Level 17. In this course we will continue working with listboxes and recordsets, including how to remove items from an unbound multi-select listbox. We will discuss exporting PDF reports for individual customers using recordsets, allowing each customer to receive their own report. Finally, we will talk about creating a custom dlookupplus function that can retrieve a list of values, such as compiling a comma-separated list of states for each sales representative. This course builds on previous developer lessons, especially recent classes focused on multi-select listboxes.

XXXXX

Lesson 1: Remove Items from Multiselect Listbox - In Lesson 1, we will walk through how to remove items from an unbound multi-select listbox in Microsoft Access. I will show you common mistakes found online, explain why directly removing selected items does not work as expected, and demonstrate a reliable solution using a temporary hidden listbox to handle the removal process. We will cover both single-column and multi-column listboxes, discuss the AddItem and RemoveItem methods, and briefly talk about arrays as an alternative approach.

XXXXX

Lesson 2: Export Individual Customer PDFs - In Lesson 2, we will walk through how to export individual PDF files for each customer by looping through customer records in Access using a record set. I will show you how to modify a customer report so it displays only one specific customer's data, use VBA code with DoCmd.OutputTo to export the report, and automate saving each PDF in a dedicated customer reports folder. We will also discuss how to set up criteria for selecting the right customer and manage the file naming, making the export process efficient and hands-free.

XXXXX

Lesson 3: DLookup Plus: Return Comma Lists - In Lesson 3, we will build a custom function called DLookupPlus that allows you to return a comma-separated list of values from a related table, similar to DLookup but for multiple results. We will walk through how to set up your tables for one-to-many relationships, write the VBA function using recordsets, handle delimiters, and use the function in your queries to show lists like sales reps with their covered regions. We will also discuss error handling considerations, how to adjust the function for different scenarios, and talk about best practices for structuring your database for reporting.

XXXXX

Lesson 4: Remove Items & Export PDFs - In this course we learned how to remove items from multi-select list boxes, export individual PDF files, and create a DLookupPlus function. We also discussed upcoming topics for future lessons, including more work with recordsets, barcoding, arrays, and changes to course structure based on your feedback. Information was provided on how to ask questions, use the website's forum and search tools, access the free Level 1 class, and provide feedback through surveys. We also clarified the difference between TechHelp videos and consulting services, and acknowledged support from Alex in the forums.

XXXXX

Navigation

Keywords

multi select listbox, remove items listbox, unbound listbox, export PDF report, output PDF report, recordset export, customer PDF reports, AddItem method, RemoveItem method, DLookupPlus, comma separated list VBA, custom dlookup function

 

Comments for Access Developer 17
 
Age Subject From
5 monthsPast Questions AskedMichael Albert
6 monthsDeveloper 17 Lesson 1Ken Wykoff
15 monthsRequest Update Handbook Missing QueryAndrew Shaw
3 yearsDLookupPlus SlowPawel Blaszczyk
4 yearsOne Report to Many PDF FilesAmanda McDonald
5 yearsExport Specific ReportAbraham Breuer
5 yearsReport from Multi-SelectDalal Ajassim
5 yearsError HandlingScott Axton
6 yearsDeveloper 18Timothy Smith
6 yearsFancy ReportsBrandon Jackson
6 yearsDLookupPlus TableJames Gray
6 yearsAccess D17 Lesson 3Richard Rost
6 yearsAccess D17 Lesson 2Richard Rost
6 yearsAccess D17 Lesson 1Richard Rost

 

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 Access Developer 17
Get notifications when this page is updated
 
Intro In lesson 17 of the Microsoft Access Developer series, we will continue working with multi-select listboxes and recordsets. You will learn how to remove items from an unbound multi-select listbox, export individual customer reports as PDF files using recordsets, and create a custom function called dlookupplus to return a list of values based on specific criteria. This lesson is compatible with Microsoft Access 365, 2019, and older versions, and builds on topics covered in previous developer classes.
Transcript Welcome to Microsoft Access Developer Level 17, brought to you by AccessLearningZone.com. I am your instructor, Richard Rost.

In today's class, we are going to continue working with Listboxes and Record Sets. We are going to remove items from a multi-select Listbox, export individual PDF files from records in our database, and we are going to create a function called dlookupplus.

We are going to continue working with multi-select Listboxes, like we have been for the last couple of classes.

In the first lesson today, we are going to cover removing items from an unbound multi-select Listbox. That is where you have a list of items in the box, not tied to a table or query. They are just stored in the box, and we are going to learn how to select multiple items and remove them.

In lesson two, we are going to continue working with Record Sets, and we are going to see how to export a customer report that is specific to each customer to a folder on your hard drive. So customer one gets his own PDF, customer two gets his own PDF. This is great for sending out statements. You can send these out in email attachments. You can do whatever you want. Each customer gets their own customer report generated by looping through the customers in a Record Set and exporting each one using a report to a PDF file.

Finally, in lesson three, we are going to write our own function called dlookupplus. Now the standard dlookup function lets you look up one value from a table or query. Dlookupplus lets you look up a whole list. You can bring back a list of items.

For example, in the example here, you have a table that has your sales rep in it, and a list of what states they cover. So you have Joe, California. The next record of course would be Joe, Maine, Joe, New Jersey, Joe, New York. That is how a properly set up relational set of tables would have them.

However, for reporting purposes, you might want to bring back a list, a comma separated list of all of the states that Joe covers. So dlookupplus will say go out to the table and look up all of the values that meet a specific set of criteria. That is dlookupplus.

This class is recorded to work with either Microsoft 365 or Access 2019, but it should work going back to all versions back to, I think, about 2007. You will be fine with 2016, 2013, and those are all good.

You should have, of course, taken my beginner, expert, advanced, and developer classes up to at least Developer One. I strongly recommend taking from Developer 13 on because I do cover some stuff that is reliant upon those lessons. The multi-select list boxes, of course, go back a few lessons. Just take all the developer classes and you will be fine.

Now it is time to sit back, relax, and watch Developer 17.
Quiz Q1. What type of Listbox will you learn to remove items from in this class?
A. Unbound multi-select Listbox
B. Bound single-select Listbox
C. Unbound single-select Listbox
D. Bound multi-select Listbox

Q2. In the second lesson, what will you be exporting for each customer?
A. An individual PDF report
B. A CSV data file
C. An Excel spreadsheet
D. A Word document

Q3. What is the main function of dlookupplus as described in the video?
A. To look up a list of values that match specific criteria
B. To sum numeric fields from a table
C. To only count records in a table
D. To update records within a form

Q4. What is dlookup's limitation compared to dlookupplus?
A. It only returns a single value
B. It cannot be used in queries
C. It only works with text fields
D. It requires VBA code

Q5. What is an example usage of dlookupplus given in the video?
A. Returning a comma separated list of states a sales rep covers
B. Updating multiple records at once
C. Exporting a batch of emails
D. Importing data from Excel

Q6. According to the video, for best understanding, which series of classes should you have taken before Developer Level 17?
A. Beginner, Expert, Advanced, and Developer 1 through at least Developer 13
B. Only Beginner classes
C. Only Advanced classes
D. No prior classes are necessary

Q7. Can the skills taught in this class be used in Access 2016 and Access 2013?
A. Yes, they are compatible
B. Only in Access 2019 or later
C. Only in Access 2010
D. No, only in Access 2021

Q8. What is one possible use of exporting individual customer reports to PDF as discussed in the video?
A. Sending out statements via email attachments
B. Generating print labels
C. Creating a zip archive of files
D. Importing them back into Access

Answers: 1-A; 2-A; 3-A; 4-A; 5-A; 6-A; 7-A; 8-A

DISCLAIMER: Quiz questions are AI generated. If you find any that are wrong, don't make sense, or aren't related to the video topic at hand, then please post a comment and let me know. Thanks.
Summary Today's video from the Access Learning Zone continues our exploration of Microsoft Access at the Developer Level 17. I am your instructor, Richard Rost.

In this class, the focus remains on working with Listboxes and Record Sets. We will cover how to remove items from a multi-select Listbox, export individual PDF files based on records from the database, and develop a new function called dlookupplus.

First, we will take a deeper look at multi-select Listboxes. Specifically, we will address how to remove items from an unbound multi-select Listbox. This means having a Listbox that is not connected to any table or query, containing items stored only within the control itself. I will demonstrate how to select multiple items within the box and remove them as needed.

Next, we will revisit Record Sets and learn how to automate the process of exporting separate PDF reports for each customer. Each customer in your database will have their own report generated and saved to a folder on your hard drive. This process is perfect for creating and sending customer statements, either as email attachments or through any method you prefer. We will loop through the customers using a Record Set and export the appropriate report for each one as a PDF file.

In the final lesson of this class, we will create a function called dlookupplus. The standard Dlookup function is limited to retrieving a single value based on your criteria, but dlookupplus will allow us to bring back a collection of values as a list. For example, suppose you have a table showing each sales rep and the states they cover. While traditionally each entry would pair a sales rep with a single state, there are situations where you want a single comma-separated list of all states covered by a specific rep. That is where dlookupplus comes in, returning a complete list of all relevant values that match your specified criteria.

The content in this course is compatible with Microsoft 365 and Access 2019, and it should also work with Access versions as far back as 2007. Users of Access 2016, 2013, and similar versions will be able to follow along without any issues.

To follow these lessons successfully, it is important that you have completed the beginner, expert, advanced, and at least the first developer level classes. I highly recommend having taken at least Developer 13 onward, since much of the content builds on those previous lessons, especially when working with multi-select Listboxes.

Now, let us get started with Developer Level 17. For a complete video tutorial with step-by-step instructions on everything discussed here, visit my website at the link below. Live long and prosper, my friends.
Topic List Removing items from an unbound multi-select Listbox

Exporting individual PDF files from each record

Looping through customers in a Record Set to export reports

Creating the dlookupplus function for multi-value lookups

Returning comma separated lists using dlookupplus
 
 
 

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/3/2026 1:38:48 AM. PLT: 1s
Keywords: multi select listbox, remove items listbox, unbound listbox, export PDF report, output PDF report, recordset export, customer PDF reports, AddItem method, RemoveItem method, DLookupPlus, comma separated list VBA, custom dlookup function  PermaLink  How To Remove Multi-Select Listbox Items Export PDF Reports and Use DLookupPlus in Microsoft Access