Drop down boxes

S

Steve

Hi,

I am trying to figure how to display a drop down box in a form, and when
something is selected from that drop down box, that another corresponding
drop down box appears with the options available from the original selection.
Does anyone know how to do this???
 
F

fredg

Hi,

I am trying to figure how to display a drop down box in a form, and when
something is selected from that drop down box, that another corresponding
drop down box appears with the options available from the original selection.
Does anyone know how to do this???

Leave the rowsource of the 2nd combo box blank.
Code the AfterUpdate event of the 1st combo box to fill the rowsource
of the 2nd.
Something like this:
Combo2.Rowsource = "Select Instructors.InstructorID,
Instructors.InstructorName from Instructors Where Instructors.ClassID
= " & Me!ComboName & ";"

Change the table and field names as needed.
The above assumes ClassID is a Number datatype and the combo box bound
column is Number also.
 

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