If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Syntax error (comma) in query expression

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-06, 01:48
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
Syntax error (comma) in query expression

Hi..
i kip gettin tis error... but it seems nthin wron to mi.. can ani1 help mi c?
thanx...

Syntax error (comma) in query expression

Code:
rs_vChecked.Source = "SELECT Rating FROM Test WHERE a='" & check1 & "' , b='" & check2 & "', c='" & check3 &"', d='" & check4 & "', e='" & check5 & "'"
Reply With Quote
  #2 (permalink)  
Old 01-17-06, 10:24
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
SELECT * FROM Persons
WHERE FirstName='Tove'
AND LastName='Svendson'
http://www.w3schools.com/sql/sql_and_or.asp
dimis
Reply With Quote
  #3 (permalink)  
Old 01-17-06, 17:11
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Or in other words, you need to replace your comma's with and's, don't forget the spaces either side of the and
Reply With Quote
  #4 (permalink)  
Old 01-17-06, 23:31
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
okay, i gt it works.. thanx alot..
btw, sorry that i have posted de thread twice.. coz initially when i post, it says tt the database had sum prob.. so i posted it again..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On