Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Run-time exception thrown :
[color=Blue]following code in vb script arising no error(i.e. debugging without any error, even then not inserting data from those three textbox control into the access database name.mdb having the table details,after clicking the button named btnadd)
com.ExecuteNonQuery() Run-time exception thrown : System.Data.OleDb.OleDbException - Operation must use an updateable query. [/color]
sub btnadd(sender as object,e as eventargs)
dim con as OleDBConnection
dim com as OleDBCommand
dim str as string
dim i as integer
con=new OleDBConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:WebSitedatabase2
str="insert into details values("&(t1.text)&","&(t2.text)&","&Cint(t3.text)&")"
if i>0 then
l1.text="one record added"
catch es as exception