Please support our VB.NET advertiser: Programming Forums
Views: 537 | Replies: 4 | Solved
![]() |
•
•
Join Date: Mar 2008
Posts: 24
Reputation:
Rep Power: 1
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.
•
•
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,596
Reputation:
Rep Power: 12
Solved Threads: 236
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 *
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode