Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Dynamically Change the Listbox s Column Heads
Mubeezi Micah 

15 years ago
Dear Richard, Dear Alex,

I finally fixed this issue today. Using labels as you suggested surely works. I have no doubt about that. But for purposes of consistency,..there are other listboxes in the database... i somehow had to use column heads. Apart from that, this particular listbox is a dyanmic container...sometimes i populate it with patients and sometimes with treatment supporters depending on what the user wants to see (read different fields).

So what did i do? I removed the field captions at table level. It seems when you have a field caption at table level, you can not dynamically change it using VBA. It's quite strange. Or perhaps it is my computer but probably not.

Best regards,

MICAH


Reply from Richard Rost:

You should be able to use ALIASes in the SQL for the list box's rowsource. For example:

SELECT FirstName AS [First Name], QtyOnHld as [Quantity On Hold] FROM WhateverT

That should use the ALIAS names as the column headers in your list box. Funny, because I'm covering the topic of ALIASes right now in the SQL 2 seminar. :)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

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: 8/24/2026 2:21:32 PM. PLT: 0s