我正在尝试将WinAutomation中的变量值按没有任何值的每一行的列标题添加到电子表格中。我尝试了两种不同的方法(插入和更新)。我收到以下错误:“运行时错误:SQL语句中的错误:INSERT INTO语句中的语法错误”。有人看到我在这里做错的事情导致上述错误吗?
INSERT INTO [Sheet1$]
[SAP Employee ID] VALUES(%SapEmployeeNumber%)
WHERE RowNumber IS null
UPDATE [Sheet1$] SET
([SAP Employee ID] = %SapEmployeeNumber%
,[Concur Travel] = %CreditOrOutofPocket%
,[Participant Name] = %ParticipantName%
,[Participant Birth Date] = %ParticipantBirth%
,[Work Location] = %ParticipantWorkLocation%
,[Street Address] = %ParticipantStreetAddress%
,[City] = %ParticipantCity%
,[State] = %ParticipantState%
,[Zip] = %ParticipantZip%
,[Participant Email] = %ParticipantEmail%
,[Contact Phone] = %ParticipantContactPhone%
,[Credit Card Profile] = %ParticipantCreditProfile%
,[Credit Limit] = %ParticipantCreditLimit% )
WHERE
[SAP Employee ID] IS NULL;