Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Developer > D38 > < D37 | D39 >
Access Developer 38

VBA for Multivalued Fields, Images in Form Columns


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

Welcome

This class has two primary goals. First, we're going to learn how to work with Multivalued Fields. Now, yes, I know I've been telling you from the beginning not to use them. They're evil. However you may have already used them, or you may encounter a database that someone else has built that used them. In either case, I'm going to teach you how to programmatically access the data in those fields and to move it over to a properly relational second table, and then use a multi-select listbox to handle them properly.

Then we will take a look at a problem that one of my students asked me about. It's very easy to display multiple images side by side (in columns) in a report, but that same functionality doesn't exist for forms. If you want to create an "image gallery" it's very difficult. But... I'll show you how to do it in today's lesson.

Resources

Topics Covered

In Lesson 1, we will learn about multivalued fields (MVF), what they are, how to use them, and why you should avoid them at all costs. Yes, they're on my Evil Access list.

In Lesson 2, we will learn how to read the values from an MVF using a recordset loop. We'll also see how to programmatically add values to a multivalued field. 

In Lesson 3, we will replace the MVF with a proper junction table. We'll learn how to loop through all of the customer records and export the MVF data to the junction table. We will create a text box to display the items as a comma separated list, like an MVF does. 

In Lesson 4, we will learn how to create a popup form with a multi-select list box to modify the data in the new MVF replacement (junction table). You could do this just with a list box on the main form, but I like the popup. :)

In Lesson 5, we will learn how to create a product catalog showing multiple images per product. Yeah, we're going to cheat and use a customer form, but the concept is the same whether it's products, customers, employees, properties, or whatever you want. It's basically displaying multiple images per record.

In Lesson 6, we will learn how to display the products in multiple columns in the report using a subreport

In Lesson 7, we will learn how to display the images in multiple columns in a subform. This isn't as easy as it sounds. There's no setting for this and Access can't handle it natively. This will involve some fancy recordset programming, a temporary table, and several events... so I hope you watched Developer 16. We're essentially creating an "image gallery" in our Access forms. 

In Lesson 8, we'll add some embellishments to our image gallery. We'll add buttons to add, edit, delete, and browse through the images. We'll create a popup form to handle most of that. We'll learn how to use a global function as an event handler instead of using event procedures all the time. We'll learn about passing variables to functions as variants so they can accept null values. 

Enroll Today

Enroll now so that you watch these lessons, learn with us, post questions, and more!

Questions?

Please feel free to post your questions or comments below. If you are not sure as to whether or not this product will meet your needs, I'd rather help you before you buy it. Remember, all sales are final. Thank you.

Keywords

microsoft access, ms access, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #instruction, #learn, #lesson, #training, #database, image gallery, multivalue fields, mvf, object invalid or no longer set, multiple images per record, multiple columns in a form, function as an event handler, event procedure, passing variants to allow null values

 

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 38
Get notifications when this page is updated
 
 

Check out these other pages that may be of interest to you:

12/9/2022Expression Is
12/8/2022Access Developer 41
12/8/2022Count Occurrences
12/7/2022Leap Year
12/6/2022Prorated
12/5/2022Edit Mode
12/4/2022Access Save Position Template
12/4/2022Save Position Instructions
12/1/2022Load Faster
11/29/2022Date Buttons
 
 

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
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
amicron@gmail.com
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: access developer 38 image gallery, multivalue fields, mvf, object invalid or no longer set, multiple images per record, multiple columns in a form, function as an event handler, event procedure, passing variants to allow null values  Page Tag: whatsnew  PermaLink  Microsoft Access Developer 38