I have hit my head against the wall for too long on this, and redone the code based on different samples and each time get new problems so hopefully somebody can assist.
I have a form with a combo box for department (combo133) and a combo box for signing authority (combo139). The source table for both department (field department) and signing authority (field "name_Last_Firs t") is called authority. The output of the form is being saved to a table WO with fields called "Originatin g Department" and "signing Authority"
I've added the following to my originating department after update:
each time I'm getting VBA errors "Compile error: Expected: end of statement" highlighting "department "
Another error I have seen is on the main form once the initial combo value is selected I receive "Syntax error (missing operator) in query expression 'department=Sec urity'.
Any pointers would be greatly appreciated.
Thanks.
I have a form with a combo box for department (combo133) and a combo box for signing authority (combo139). The source table for both department (field department) and signing authority (field "name_Last_Firs t") is called authority. The output of the form is being saved to a table WO with fields called "Originatin g Department" and "signing Authority"
I've added the following to my originating department after update:
Code:
Private Sub Combo133_AfterUpdate() On Error Resume Next combo139.rowsource = "Select distinct Name_Last_first " & _ "From Authority " & _ Where Department ='" & me.combo133 & "' " & _ "Order by Name_Last_First" End Sub
Another error I have seen is on the main form once the initial combo value is selected I receive "Syntax error (missing operator) in query expression 'department=Sec urity'.
Any pointers would be greatly appreciated.
Thanks.
Comment