list box based on another text box

S

stickandrock

I have text boxes in my form.

listbox1 does a query to get a list
listbox2 does a query based on the value of listbox1

data

col 1 (listbox1) col 2 (listbox2)
a apple
a apricot
b boy
b bat

when I choose "a" in listbox1 the only values to show in listbox2 are apple
and apricot. The second text box has a query with a condition on listbox1.

everything works fine when I first open the form, but if I change the value
of listbox1 the second box will not refresh it valid list.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top