Click here to Skip to main content
15,904,934 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Next Number Pin
Guffa14-Feb-08 5:09
Guffa14-Feb-08 5:09 
GeneralRe: Next Number Pin
Steven J Jowett14-Feb-08 10:03
Steven J Jowett14-Feb-08 10:03 
GeneralTOO Many argumnets error Pin
soniasan14-Feb-08 0:43
soniasan14-Feb-08 0:43 
GeneralRe: TOO Many argumnets error Pin
Colin Angus Mackay14-Feb-08 1:08
Colin Angus Mackay14-Feb-08 1:08 
GeneralRe: TOO Many argumnets error Pin
Dave Kreskowiak14-Feb-08 2:30
mveDave Kreskowiak14-Feb-08 2:30 
GeneralRe: TOO Many argumnets error Pin
Vimalsoft(Pty) Ltd14-Feb-08 6:09
professionalVimalsoft(Pty) Ltd14-Feb-08 6:09 
QuestionWhat is causing OleDbException no value given one or more parameter? Pin
JUNEYT13-Feb-08 23:08
JUNEYT13-Feb-08 23:08 
GeneralRe: What is causing OleDbException no value given one or more parameter? Pin
John_Adams13-Feb-08 23:55
John_Adams13-Feb-08 23:55 
HI,

It seems to me that the OleDbProvider thinks that there is a parameter in your SQL command. Do any of your inputs contain a question mark, which denotes a parameter in OleDb? I would suggest you to use a parameterized SQL statement then pass all your textbox values as parameters using OleDbParameter. Below is the code snippet for the same:
-------------------------------------------------------------------------
BEGIN CODE

Dim strEditCommand As String = "UPDATE " & WhatTable & " SET "

strEditCommand += " VMeaning = ?, Description = ?, Thoughts=?, "

strEditCommand += " WHERE OderNumber=? AND VNumber= ? "

Using con As New OleDbConnection(SQLConnStr)

Using cmd As New OleDbCommand()
cmd.Connection.Open()
cmd.CommandText = strEditCommand

cmd.Parameters.Add(New OleDbParameter("VMeaning", TextBox1.Text))
cmd.Parameters.Add(New OleDbParameter("Description", TextBox2.Text))
cmd.Parameters.Add(New OleDbParameter("Thoughts", TextBox3.Text))
con.Open()

cmd.ExecuteNonQuery()

End Using
Con.Close()

End Using

END CODE
-------------------------------------------------------------------------
I hope this helps Smile | :) .

Regards,
John Adams
ComponentOne LLC

GeneralRe: What is causing OleDbException no value given one or more parameter? Pin
JUNEYT14-Feb-08 0:14
JUNEYT14-Feb-08 0:14 
GeneralRe: What is causing OleDbException no value given one or more parameter? Pin
Dave Kreskowiak14-Feb-08 2:25
mveDave Kreskowiak14-Feb-08 2:25 
GeneralTricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
VamsyKrishna13-Feb-08 20:27
VamsyKrishna13-Feb-08 20:27 
GeneralRe: Tricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
Christian Graus14-Feb-08 0:24
protectorChristian Graus14-Feb-08 0:24 
GeneralRe: Tricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
Dave Kreskowiak14-Feb-08 2:20
mveDave Kreskowiak14-Feb-08 2:20 
GeneralRe: Tricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
Christian Graus14-Feb-08 9:36
protectorChristian Graus14-Feb-08 9:36 
GeneralRe: Tricky Select Case Condition and A Great Food for Visual Basic.Net Gurus Pin
Dave Kreskowiak14-Feb-08 9:46
mveDave Kreskowiak14-Feb-08 9:46 
QuestionHow to click on a link ? Pin
SekharOne13-Feb-08 18:33
SekharOne13-Feb-08 18:33 
AnswerRe: How to click on a link ? Pin
Nilesh Hapse13-Feb-08 20:24
Nilesh Hapse13-Feb-08 20:24 
GeneralRe: How to click on a link ? Pin
SekharOne13-Feb-08 22:36
SekharOne13-Feb-08 22:36 
QuestionHow to click on a link Pin
SekharOne13-Feb-08 18:33
SekharOne13-Feb-08 18:33 
AnswerRe: How to click on a link Pin
John_Adams14-Feb-08 0:18
John_Adams14-Feb-08 0:18 
GeneralRe: How to click on a link Pin
SekharOne14-Feb-08 23:41
SekharOne14-Feb-08 23:41 
GeneralWindow Handle Pin
Kumaran21cen13-Feb-08 17:51
Kumaran21cen13-Feb-08 17:51 
GeneralRe: Window Handle Pin
Dave Kreskowiak14-Feb-08 2:13
mveDave Kreskowiak14-Feb-08 2:13 
QuestionHow to make our form to be executed before running explorer.exe Pin
Eager Learner13-Feb-08 14:22
Eager Learner13-Feb-08 14:22 
GeneralRe: How to make our form to be executed before running explorer.exe Pin
Christian Graus13-Feb-08 20:18
protectorChristian Graus13-Feb-08 20:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.