Duplicating Ranking System

Please support our ASP advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Jun 2009
Posts: 1
Reputation: skb0415 is an unknown quantity at this point 
Solved Threads: 0
skb0415 skb0415 is offline Offline
Newbie Poster

Duplicating Ranking System

 
0
  #1
Jun 15th, 2009
I have been struggling over this for about a week now. I am trying to duplicate a ranking system for a client so that it can be accessed privately and players can have a different rating from publicly. I have added new field to encompass my new information. Everything works out fine until I want to UPDATE the information and I then get this error:

Microsoft JET Database Engine error '80040e14'

Syntax error in UPDATE statement.

/administration/scouting_update_ranktestpriv.asp, line 30

When I go to look at this line this is the written code

elseIf msrankpriv <> "0" Then
	sSQL = "UPDATE memberSports SET msrankpriv = " & msrankpriv & " WHERE msMember = " & memberId
	Line 30---->objConn.Execute sSQL
	sSQL = "UPDATE memberSports SET mscheckspriv = " & mscheckspriv & " WHERE msMember = " & memberId

Can anyone please help me identify my problem. I think it is simple but I cannot figure it out
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 18
Reputation: jsvanc is an unknown quantity at this point 
Solved Threads: 1
jsvanc jsvanc is offline Offline
Newbie Poster

Re: Duplicating Ranking System

 
0
  #2
Jun 29th, 2009
Originally Posted by skb0415 View Post
elseIf msrankpriv <> "0" Then
	sSQL = "UPDATE memberSports SET msrankpriv = " & msrankpriv & " WHERE msMember = " & memberId
	Line 30---->objConn.Execute sSQL
	sSQL = "UPDATE memberSports SET mscheckspriv = " & mscheckspriv & " WHERE msMember = " & memberId

Try this:
  1. elseIf msrankpriv <> "0" Then
  2. sSQL = "UPDATE memberSports SET msrankpriv = '" & msrankpriv & "' WHERE msMember = '" & memberId & "'"
  3. objConn.Execute sSQL
  4. sSQL = "UPDATE memberSports SET mscheckspriv = '" & mscheckspriv & "' WHERE msMember = '" & memberId & "'"

Let me know if this works for you.
Hit any user to continue......
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC