RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums
Views: 537 | Replies: 4 | Solved
Reply
Join Date: Mar 2008
Posts: 24
Reputation: _::suhanna::_ is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
_::suhanna::_ _::suhanna::_ is offline Offline
Newbie Poster

Help syntax Error..

  #1  
Mar 18th, 2008
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Posts: 6,576
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 31
Solved Threads: 499
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: syntax Error..

  #2  
Mar 18th, 2008
You're missing a comma between the address and handphone arguments in your call.
I'm here to prove you wrong.
Reply With Quote  
Join Date: Mar 2008
Posts: 24
Reputation: _::suhanna::_ is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
_::suhanna::_ _::suhanna::_ is offline Offline
Newbie Poster

Question Re: syntax Error..

  #3  
Mar 18th, 2008
Originally Posted by Narue View Post
You're missing a comma between the address and handphone arguments in your call.


i already put a comma between address and handphone,but error still come
and this time is "Syntax error in UPDATE statement"

it is anything with my code?

thanks..
Reply With Quote  
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,596
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 12
Solved Threads: 236
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: syntax Error..

  #4  
Mar 19th, 2008
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 :
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 *
Reply With Quote  
Join Date: Mar 2008
Posts: 24
Reputation: _::suhanna::_ is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
_::suhanna::_ _::suhanna::_ is offline Offline
Newbie Poster

Re: syntax Error..

  #5  
Mar 20th, 2008
hello u guys...

thanks for helping me...

im done now..sorry for the late reply..

thanks again..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:11 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC