Working with Listbox controls

M

Malik

Hello everyone,

I've been working with Access for a couple of months now and I'm wondering
how do you access the value of a list box control? I have a list box with
the name of all of the queries in the database. Once a user selects a query
in the list box, I want to run that paticular query. Any ideas?

Thanks
 
F

fredg

Hello everyone,

I've been working with Access for a couple of months now and I'm wondering
how do you access the value of a list box control? I have a list box with
the name of all of the queries in the database. Once a user selects a query
in the list box, I want to run that paticular query. Any ideas?

Thanks

Code the ListBox AfterUpdate event:

DoCmd.OpenQuery Me!ListBoxName
 
Top