0
我在UPDATE語句中出現語法錯誤,但我不確定它到底在哪裏。這裏是我的代碼:SQL Update語句中的語法錯誤
strSelected = "UPDATE CFRRR SET assignedby = " & Me.cmbassignedby.Column(1) & ", assignedto = " & _
Me.cmbassignedto.Column(2) & ", Dateassigned = " & Now() & ", actiondate = " & _
Now() & ", Workername = " & Me.cmbassignedto.Column(2) & ", WorkerID = " & _
Me.cmbassignedto.Column(1) & " WHERE CFRRRID In (" & strSelected & ");"
CurrentDb.Execute strSelected
沒有,沒有工作,我還是得到了同樣的錯誤:( – Lilly
如果你與周圍的日期值'#'?類似'... Dateassigned =#「&Now()&」#,action ...「' –
也沒有工作 – Lilly