我正在Access 2013中执行一个程序,我试图让我的表单将数据插入到表中(通过VBA代码),我创建了一个子表单(tblClients_subform),其中包含每个" tblClients"数据,但由于一些奇怪的原因,它给我这个错误:
"Could not find tblClients_subform"
这是我的整个块:
"CurrentDb.Execute "INSERT INTO tblClients_subform (ClientID, ClientName, Gender, " & _
"City, [Address], [Cellphone/Telephone])" & _
"VALUES (" & Me.txtID & ",'" & Me.txtName & "','" & Me.cboGender & _
"','" & Me.txtCity & "','" & Me.txtAddress & "','" & Me.txtCellphone & "')"
我做错了什么?有没有其他方法可以让我的表单在子表格中插入数据?