Error:
Run-time 3075
Syntax error (missing operator) in query expression 'SOW_Num = AND ALL_CUST_ID = 133'
DoCmd.RunSQL "DELETE * FROM tbl_ALL_SOW WHERE SOW_Num = " & Me!sbfrm_New_SOW.Form!SOW_Num & "" & _
"AND tbl_ALL_SOW.ALL_CUST_ID= " & Me.ALL_CUST_ID & ";"
ALL_CUST_ID is on both the main and subform, it is how the forms are linked.
SOW_NUM is a combo box on the sub form. Both are integer values.
Not familar with all the syntax rules. Why is it not reading the where sow_num = me!sbfrm... ??
Run-time 3075
Syntax error (missing operator) in query expression 'SOW_Num = AND ALL_CUST_ID = 133'
DoCmd.RunSQL "DELETE * FROM tbl_ALL_SOW WHERE SOW_Num = " & Me!sbfrm_New_SOW.Form!SOW_Num & "" & _
"AND tbl_ALL_SOW.ALL_CUST_ID= " & Me.ALL_CUST_ID & ";"
ALL_CUST_ID is on both the main and subform, it is how the forms are linked.
SOW_NUM is a combo box on the sub form. Both are integer values.
Not familar with all the syntax rules. Why is it not reading the where sow_num = me!sbfrm... ??