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

Visual Basic

 
GeneralRe: Next Number Pin
Dave Kreskowiak14-Feb-08 4:11
mveDave Kreskowiak14-Feb-08 4:11 
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 
Hi!

Here is my code and I am getting an error message when I execute it (OleDBException - No value given one or more parameters). I couldn't figure out what is causing the error because all the given parameters are correct. However when I remove the last line from SQL string it is working fine. I assumed that I can use more than one condition after WHERE caluse in the string but it seems that it only accepts only one.

Thanks.
Juneyt

<br />
Dim mySelectQuery As String = "UPDATE " & WhatTable & " SET "<br />
<br />
mySelectQuery += "VMeaning=" & "'" & Replace(TextBox1.Text, "'", Chr(34)) & "',"<br />
mySelectQuery += "Description=" & "'" & Replace(TextBox2.Text, "'", Chr(34)) & "',"<br />
mySelectQuery += "Thoughts=" & "'" & Replace(TextBox3.Text, "'", Chr(34)) & "'"<br />
mySelectQuery += " WHERE OderNumber=" & SorahNumber <br />
<br />
'When I cancel the line below, it is working fine<br />
mySelectQuery += " AND VNumber=" & CInt(ComboBox3.SelectedItem)  <br />
<br />
<br />
<br />
        Dim myconnection As New OleDbConnection(SQLConnStr)<br />
        Dim myCommand As New OleDbCommand(mySelectQuery, myconnection)<br />
<br />
        myconnection.Open()<br />
<br />
        myCommand.ExecuteNonQuery() 'error occurs here<br />
        myconnection.Close()<br />



What a curious mind needs to discover knowledge is noting else than a pin-hole.


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 
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 

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.