
Originally Posted by
epardo87
thanks ssanfu, actually, the column "supervisor" is pulled from a query, so im writing the code like the following, but i'm getting a Syntax error... what am I doing wrong?
You DON"T use the combo box change event to set the combo box row source!
Your image in Post #1 was a form in Single Form view. Now it appears that you are using continuous form view.
What is the SQL of the query?
I would rename the combo box for the area "cboArea". I would set the combo box Row Source property to something like
Code:
SELECT DISTINCT Area FROM tblAreas ORDER BY Area
The combo box for the supervisor I would name "cboSupervisor". I would set the combo box Row Source property to something like
Code:
SELECT Supervisor FROM tblAreas WHERE Area = '" & me.cboArea & "'"
Would need to see the dB to give a better answer...........