Hello all, I am a little new to SQL, and when trying to run the following statement, I get the error: quote: "Microsoft JET Database Engine error '80040e14' Syntax error (missing operator) in query expression 'Counter IN ()'. /Pm/Pmgen2.asp, line 448
Here is the statement:sSQL = "INSERT INTO WOLabour (Employee,TransDate,WoNum,LaborType,Scale,Hours,Rate,Tax1,Tax2,AddCost,TotalCost,Account,Description,ModifyDate,Estimate,RefNum,Craft,ChargeBackAmount,TaskNum) " & _ "SELECT Employee,'" & txdate & "',WoNum,LaborType,Scale,Hours,Rate,Tax1,Tax2,AddCost,TotalCost,Account,Description,'" & curDate & "',0,Counter,Craft,ChargeBackAmount,TaskNum FROM WOLabour WHERE Counter IN (" & counters & ")" conn.Execute sSQL, , 128Any help would be greatly appreciated.Thanks,Parallon |