我正在使用后端的Access Table在Visual Studio-2015中开发项目。我收到错误:尽管表字段具有确切的字段名称,但没有为一个或多个参数提供任何值。我的代码如下:
Private Sub BtnSave_Click(sender As Object, e As EventArgs) Handles BtnSave.Click
BtnSave.Enabled = False
Dbconnection.Close()
Dbconnection.Open()
'AddEmpCmd.CommandType = CommandType.Text
AddEmpCmd.CommandText = "INSERT INTO EMP_MASTER " &
"(CurrYear, Sap_No, CPF_No) " &
"VALUES (@CurrYear, @Sap_No, @CPF_No) ; "
End Sub
请帮助
预先感谢