我正在尝试更新名为“tbl_Responses”的表中的几列,但它在运行后给出了一个我一直试图找到的错误!
varX= DLookup("[ID]", tableName, "[supplierNum] = " & supplierNum)
updateFieldsTbl1="column1,column2,column3,column4"
updateValuesTbl1 ="name,lastname, bla bla"
'There is nothing wrong with those 3 variables above.
sqlUp = "UPDATE " & tableName & "(" & updateFieldsTbl1 & ")" & " SET " & "(" & _ updateValuesTbl1 & ") WHERE ID = " & varX
DoCmd.RunSQL sqlUp
它在 UPDATE 语句行中给出错误。你能告诉我我做错了什么吗?提前致谢