| | |
error in insert into statement
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2009
Posts: 136
Reputation:
Solved Threads: 13
m using access 2007 and vb 2005
this is my code
this is my code
VB.NET Syntax (Toggle Plain Text)
Dim drNewRow As DataRow = m_DataTable.NewRow() drNewRow("Code") = txtColourCode.Text.Trim drNewRow("Colour Name") = txtBaseColour.Text.Trim drNewRow("Price") = txtPrice.Text.Trim m_DataTable.Rows.Add(drNewRow) m_DataAdapter.Update(m_DataTable)
•
•
Join Date: Jun 2009
Posts: 136
Reputation:
Solved Threads: 13
VB.NET Syntax (Toggle Plain Text)
select * from accesstable
•
•
Join Date: Jan 2008
Posts: 19
Reputation:
Solved Threads: 0
why not use ado.net instead?
use commandtext its easier!
use commandtext its easier!
Share your knowledge It's one way to achieve immortality.
My Blog: http://blog.rabihtawil.com
My Programming Community: http://www.coderisland.com
My Blog: http://blog.rabihtawil.com
My Programming Community: http://www.coderisland.com
•
•
Join Date: Sep 2009
Posts: 307
Reputation:
Solved Threads: 44
The dataadapter does not automatically create any of these commands.
If you are referring to the use of a commandbuilder attached to your dataadapter to generate the insert, update & delete statements; I would like to see the block of coding that creates this and fills your dataadapter so that I may see where it is causing you problems.
Also does the table have a primary key/unique field, the command builder needs this in order to be able to perform these statements.
If you are referring to the use of a commandbuilder attached to your dataadapter to generate the insert, update & delete statements; I would like to see the block of coding that creates this and fills your dataadapter so that I may see where it is causing you problems.
Also does the table have a primary key/unique field, the command builder needs this in order to be able to perform these statements.
![]() |
Similar Threads
- Insert Error:Syntax error in INSERT INTO statement (C#)
- Syntax error in INSERT INTO statement, please help (ASP)
- Syntax error in INSERT INTO statement (Java)
- Problems on Insert and Update Statement (C#)
- insert statement error (MySQL)
- SQL Server 2005 version Error Insert command help me (MySQL)
Other Threads in the VB.NET Forum
- Previous Thread: Small Probs
- Next Thread: Storing Data in Excel Worksheet Invisible to the User
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array arrays basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp google hardcopy image images inline insert listview login math memory mobile ms navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problemwithinstallation project reports" save savedialog searchbox serial server soap sql string table tcp text textbox timer toolbox trim update updown upload usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





