在访问中显示运行时错误3134

时间:2013-09-27 06:32:59

标签: vba ms-access access-vba

在单击控件时插入到语句中给出了运行时错误3134语法错误。

Private Sub CmdAddNew_Click()
'add data to table
CurrentDb.Execute "INSERT INTO tblemployee(,firstname,lastname,Address,city)" & _
"VALUES('" & Me.txtfirstname & "','" & Me.txtlastname & "','" & Me.txtaddress & "','" &     Me.txtcity & "')"

1 个答案:

答案 0 :(得分:0)

tblemployee(,firstname

这里有额外的逗号吗?