dynamic listbox
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Dynamic listbox

Dynamic listbox

resolvedResolved · Low Priority · Version 2007

replyReply Fri 3 Jun 2011, 12:42 Edited on Fri 3 Jun 2011, 12:44Delegate Robert said...

Robert has attended:
Access Advanced course

Dynamic listbox

Is it possible to dynamically change the values in a listbox based on the value selected in another listbox in the same form?

What I want to do is to be able to select a sub-section in list 2 after first selecting the main section in list 1.

Any help greatly appreciated.

For upcoming training course dates see: Pricing & availability

replyReply Mon 6 Jun 2011, 10:10Trainer Anthony said...

RE: Dynamic listbox

Hi Robert, thanks for your query. It is possible, but you'll need to do it in VBA. What you're trying to do is capture the event that occurs when you choose an option in the first listbox, and use that to trigger the population of the second.

Hope this helps,

Anthony

replyReply Mon 6 Jun 2011, 12:39Delegate Robert said...

RE: Dynamic listbox

Thanks Anthony.

I put an 'on click' event on the first listbox that requeried the second listbox. This seemed to work ok because the selection criteria of the second listbox was based on the selected value in the first one.

replyReply Mon 6 Jun 2011, 12:41Trainer Anthony said...

RE: Dynamic listbox

Excellent! Glad it worked!

Anthony

 

Please browse our web site to find out more about
ms access training course london and other Microsoft training courses.

Access tip:

Combo box for finding records

You can use a combo box in a form to look up a record. If you place the comb box in the Form header, by then selcting they a field type from the drop down loist, you will see the record for it

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard