A
auujxa2 via AccessMonster.com
I have this small SQL statement, that says, clear any checkmarks from the
indicator field, in the MasterTbl, where vendor and department = the combo
boxes. (which works fine). But it's the last line of the SQL that isn't
working.
I want to also have the MasterTbl Stores = the stores field from a query
"ActiveStoreQry". Do I need to put SELECT... FROM... anywhere? since
ActiveStoreQry isn't defined?
Here's what I have. Thank you in advance.
strSQL = "UPDATE [MasterTbl] " & "SET [Indicator] = TRUE " & _
"WHERE [MasterTbl].[Vendor] = """ & Me.cboNewVendor & """" & _
" And [MasterTbl].[Department] = """ & Me.cboNewSimDept & """" & _
" And [MasterTbl].[Stores] = [ActiveStoreQry].[Stores]"
DoCmd.RunSQL strSQL
indicator field, in the MasterTbl, where vendor and department = the combo
boxes. (which works fine). But it's the last line of the SQL that isn't
working.
I want to also have the MasterTbl Stores = the stores field from a query
"ActiveStoreQry". Do I need to put SELECT... FROM... anywhere? since
ActiveStoreQry isn't defined?
Here's what I have. Thank you in advance.
strSQL = "UPDATE [MasterTbl] " & "SET [Indicator] = TRUE " & _
"WHERE [MasterTbl].[Vendor] = """ & Me.cboNewVendor & """" & _
" And [MasterTbl].[Department] = """ & Me.cboNewSimDept & """" & _
" And [MasterTbl].[Stores] = [ActiveStoreQry].[Stores]"
DoCmd.RunSQL strSQL