cascading combos and list selection

G

Guest

i think i have managed to build a version of cascading combo boxes. i have
three combo boxs that select the values for theme, region, and industry. now
i have list box that displays the variables available for any combination of
criteria, however, it will not automatically refresh. it only displays
different info when switched from design view to form view. is it possible
to solve this without complicated codes?

also, i would like a box displaying years available for data when a
particular variable is selected in the list. how to?
 
K

Keith Leslein

If this ListBox is based on the Combo criteria you could use the
Requery feature on the AfterUpdate Event of the Final ComboBox.

Me.ListBox.requery
 
G

Guest

Thanks Keith. I assume that to do this, you click properties of the combo
box, then AfterUpdate, then code builder, then just type in what you told me,
inserting the names of the combo box of course.

I tried it, but nothing happened. The list box remained populated by the
first query.
 
G

Guest

sorry about the last post, i tried it again but with the name of the listbox
in the requery not the combo box and it worked! thanks again
 

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