Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Combo Box Select One 2    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Alternate Method for Comb Box Select One
Donald Blackwell 
       
12 months ago
I've been working on a couple projects for some time before having watched this 2-part video series and actually was able to just use the Format property of the ComboBox. My method may still be viewed as "cheesy" I suppose, but it does work without a union query or a bogus record.

The thing to understand about the format property is that it applies to the BOUND column of the combo box. And because, often, our bound column is our hidden id field, we just can't see it. But it works the exact same as the format property of a text box.

So, my alternate solution is change the bound column to the visible column and set the combo box as unbound. Then use the AfterUpdate event to set the value of a hidden bound textbox to the value in the hidden first column. Example:

ComboBox:
   name: WeekdayCbo
   row source: 1;"Monday";2;"Tuesday";3;"Wednesday";4;"Thursday";5;"Friday";6;"Saturday";7;"Sunday"
   bound column: 2
   format: @;[Blue]"Select the Day"
   column count: 2
   column widths: 0";1.5"

TextBox:
   name: WeekayID
   control source: WeekDayID
   visible: no

Private Sub WeekdayCbo_AfterUpdate()
    WeekdayID = WeekdayCbo.Column(0)
End Sub

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Combo Box Select One 2.
 

Next Unseen

 
New Feature: Comment Live View
 
 

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: 5/21/2026 12:21:21 AM. PLT: 0s