访问表单Vba更新记录

时间:2015-05-20 08:09:33

标签: vba ms-access access-vba

我想使用表单更新Microsoft Access数据库中的记录但是给出了错误预期的语句。 :|

CurrentDb.Execute "UPDATE [Ensamblador]" _
"SET NumerodeEnsamblador=" & Me.textboxone  & "" _
", NombredeEnsamblador='" & Me.textboxtwo & "'" & _
", Especialidad='" & Me.textboxthree & "'" & _
" WHERE NumerodeEnsamblador=" & Me.textboxone

1 个答案:

答案 0 :(得分:0)

它可能应该是:

CurrentDb.Execute "UPDATE Ensamblador " & _
"SET NombredeEnsamblador = '" & Me.textboxtwo & "'" & _
", Especialidad='" & Me.textboxthree & "' " & _
"WHERE NumerodeEnsamblador=" & Me.textboxone & ""