One other thing, Alfred. I hope I didn't confuse you--the <> symbols I used
in my post were meant to describe something you need to fill in, they are not
part of a valid string. If Organization is the name of the field matching
the selection of the first combo box, your code will be something like:
Me!YourSecondComboBox.RowSource = "SELECT Field1, Field2 FROM YourTable
WHERE [Organization] = " & Me!assigned_location
Sprinks
Alfred FPC said:
Sprinks,
Thanks for the speedy reply. What i have tried to do is use the code you
provided for me and use it in the after update of my "second combo box". But
after i inset the code it part of the code becomes red and it says that their
is a compile error, expected expression. The part that lights up in red is
----- where <organization> =" & Me!assigned_location"----- Do you have any
idea what i did wrong
:
Hi, Alfred.
This is done by setting the RowSource property of the second combo box in
the AfterUpdate event procedure of the first. Then requery the 2nd CB.
Me!MySecondComboBox.RowSource = "SELECT <fieldlist> FROM <table> WHERE
<field> =" & Me!MyFirstComboBox
Me!MySecondComboBox.Requery
Sprinks
:
I want to have it where when i select a a value in one combo box it will only
allow certain values in another combo box next to it to be selected. Now i am
not too sure how to approach this so any help would be wonderful.