Inserting Data in Access
I am getting the following error when i put AcceptChanges after Update()
Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
Source Error:
Line 607: NewDataRow("CheckList2") = "1000" ' CheckBoxList2.SelectedValue
Line 608: ds.Tables("ApplicationForm").Rows.Add(NewDataRow)
Line 609: OleDbDataAdapter1.Update(ds, "ApplicationForm")
Line 610: ds.AcceptChanges()
Line 611: Me.OleDbConnection1.Close()
Source File: c:\inetpub\wwwroot\WebApplication2\Application.aspx.vb Line: 609
Stack Trace:
[OleDbException (0x80004005): Operation must use an updateable query.]
System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
WebApplication2.WebForm1.BtnSubmit_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication2\Application.aspx.vb:609
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
Please let me know where i am going wrong.
Thanks