Hi again,
So basically what I'm trying to do is choose two pieces of information (General_Combo, and Pipelines) from combo boxes, then have a text box fill itself in based on the choices I've made with the combo boxes. The combo boxes match to a table where all the information is available to cross-reference and fill in the text box(Activity_ID, Region, Work_Order).
I tried to set it to the control source but instead of the Work_Order text in the table showing up in my text box, i'm getting "#Name?" Anyways, enough rambling. Here's my code
- Private Sub Pipelines_Click()
-
-
Forms.Layout.Worker.ControlSource = "SELECT Work Order.Work_Order " & _
-
"FROM Work Order " & _
-
"WHERE Forms.Layout.Pipelines = Work Order.Region" & _
-
"AND Forms.Layout.General_Combo = Work Order.Activity_ID"
-
-
End Sub
If anyone could give me some suggestions on what's wrong with my code, or perhaps a better way to cross reference my data, I would really appreciate it.
Thanks,
Tiffany