| | |
syntax Error..
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Mar 2008
Posts: 24
Reputation:
Solved Threads: 0
hi..
im using vb.net
can u guys help me..
i dont know why error still come...
whats wrong with my coding?
dis my code
Public Sub UpdateMember(ByVal membername As String, ByVal address As String, ByVal handphone As String)
ExecuteSqlCommand("update member set tmembername=" & membername & ", taddress='" & address & "' and handphone='" & handphone & "'")
End Sub
when i running the program
this error will out "No value given for one or more required parameters"
please help me...
im in urgent..
thanks.
im using vb.net
can u guys help me..
i dont know why error still come...
whats wrong with my coding?
dis my code
Public Sub UpdateMember(ByVal membername As String, ByVal address As String, ByVal handphone As String)
ExecuteSqlCommand("update member set tmembername=" & membername & ", taddress='" & address & "' and handphone='" & handphone & "'")
End Sub
when i running the program
this error will out "No value given for one or more required parameters"
please help me...
im in urgent..
thanks.
yes, you don't have parameter to update. i mean your key to update. your code its not specify who to update.
you need key :
where KeyName = ???. ex : where IdMember='"123"'
and you loosing to add single quote :
you need key :
where KeyName = ???. ex : where IdMember='"123"'
and you loosing to add single quote :
ExecuteSqlCommand("update member set tmembername='" & membername & "', taddress='" & address & "' and handphone='" & handphone & "' Where IdMember = '"???"' " ) Last edited by Jx_Man; Mar 19th, 2008 at 2:01 am. Reason: add code
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Similar Threads
- syntax error? .. operator overload method problemo (C)
- syntax error that I just can't seem to find! (Visual Basic 4 / 5 / 6)
- UPDATE syntax error (MySQL)
- Subshell Problem, syntax error...Help please! (Shell Scripting)
- DECLARATION SYNTAX ERROR (for bc 31 user) (C++)
- Parse error, syntax error, Forbids declaration (C++)
Other Threads in the VB.NET Forum
- Previous Thread: how to read data from text file into data grid???
- Next Thread: merge from c# to VB
| Thread Tools | Search this Thread |
.net .net2005 30minutes 2005 2008 access account arithmetic array 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 generatetags google gridview hardcopy image images inline insert intel internet listview mobile monitor ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save savedialog searchbox searchvb.net select serial server soap sql table tcp text textbox timer toolbox trim update updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf






