| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| 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) sub btnadd(sender as object,e as eventargs) dim con as OleDBConnection dim com as OleDBCommand dim str as string dim i as integer try con=new OleDBConnection("provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\WebSite\database2\name.mdb;") con.open() str="insert into details values("&(t1.text)&","&(t2.text)&","&Cint(t3.text)&")" com=new OleDBCommand(str,con) i=com.Executenonquery() if i>0 then l1.text="one record added" end if catch es as exception l1.text=es.message finally con.close() end try end sub -------------------- PLEASE GIVE DETAILS OF THAT PROBLEM??????????? Anirban Chakraborty pompai2005-at-gmail.com *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |