I am trying to get this query working. I want to update line items where the BID - xxxx And the URC is not 7 or1. I always get a bit confused in how to do multiple criteria like this.
Currently I have tried:
Code:
strSQL = "Update tbl_ImportedRepairs " _
& "Set tbl_ImportedRepairs.AccountingCode = 21570 " _
& "WHERE [tbl_ImportedRepairs].[BillingInvoiceId]= paramBID AND [UpdatedResponsibilityCode] = 7 OR [UpdatedResponsilityCode =1"
And
Code:
Update tbl_ImportedRepairs Set tbl_ImportedRepairs.AccountingCode = 21570 WHERE [tbl_ImportedRepairs].[BillingInvoiceId]= "ALX-LB10802" AND [tbl_importedRepairs].[UpdatedResponsibilityCode] Not In (3,6)"
The first one is my parameterized query and works fine if I only use the where BillingInvoiceID ANd UpdatedResponsibility code but fails when I add the OR [UpdatedResponsilityCode =1"
The second one I am trying to manually put in the values to test but using the not in
Thanks