943,195 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 24
  • ASP RSS
Jul 22nd, 2010
0

Missing Operator error

Expand Post »
Hello,

I am creating a page that displays sections of a database based on ClassTypeID, and using the following as my SQL statement:
ASP Syntax (Toggle Plain Text)
  1. "SELECT * FROM Classes WHERE ClassTypeID=" & request("ClassTypeID") & ""

The user will select a category from the following menu:
ASP Syntax (Toggle Plain Text)
  1. <p><a href="class.asp?ClassTypeID=1">Care Management</a>
  2. </p>
  3. <p><a href="class.asp?ClassTypeID=2">Claims/Customer Service</a>
  4. </p>
  5. <p><a href="class.asp?ClassTypeID=3">Provider Network </a>
  6. </p>
  7. <p><a href="class.asp?ClassTypeID=4">Pharmacy Benefit Management</a>
  8. </p>

I am getting the error: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'ClassTypeID='.

This code works without a hitch on another site; I am clueless as to what operator it thinks needs to be there. I've tried a closing semicolon in various places but I still get an error. Please help! Thank you.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
LaughingLynx is offline Offline
1 posts
since Jul 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: .ASPX File Is Working In IE8, But Not In Firefox
Next Thread in ASP Forum Timeline: Simple action on string from form - ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC