Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2007, 05:43 AM
Registered User
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default simple problem of insertion

hi..
this is the code that im using to insert a data in my access database...

dim con as ledbconnection
dim str as string
dim com as oledbcommand
con=new oledb connection("path")
str="insert into material_name(material) values(@material)"
com=new oledbcommand(str,con)
com.parameters.add("@material",oledb.varchar,textb ox5.text) //this line is giving error

con.open()
com.executenonquery()
con.close


my database table is in ms-access and the material column of material_name table is of "text" type.
spellings are correct bt still it is giving the error that string can not be converted to integer



any help would be gr8..
plz help me out of this
thnks in advance

abhishek
 
Old March 13th, 2007, 08:27 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 227
Thanks: 1
Thanked 7 Times in 7 Posts
Default

abhishek0807:
Updates and/or inserts are achieved via the DataSet,the DataAdapter and the DataTable.

Hope this helps.



========================
Disclaimer: The above comments are solely the opinion of one person and not to be construed as a directive or an incentive to commit fraudulent acts.





Similar Threads
Thread Thread Starter Forum Replies Last Post
table insertion format problem nachiketha XSLT 2 March 9th, 2007 11:56 AM
Simple Problem Little Shell XML 2 June 5th, 2006 03:30 PM
problem in date insertion abhit_kumar JSP Basics 0 December 3rd, 2004 06:07 AM
a simple problem aquarius XSLT 1 February 27th, 2004 06:17 AM
simple problem Adam H-W Javascript 2 November 11th, 2003 12:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.