See Notes

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 02 December 2002 14:01
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Error in SELECT


Hi,

I have the following statement that is causing a syntax error:

sLearnerSQL = "
SELECT * 
>From LearnerDetails 
WHERE Title='" & sTitle & "' 
AND FName='" & sFName & "' 
AND LName='" & sLName & "' 
AND Add1='" & sAdd1 & "' 
AND Add2='" & sAdd2 & "' 
AND Town='" & sTown & "' 
AND County='" & sCounty &"' 
AND PostCode='" & sPostCode & "' 
AND CurrentlyEmployed='" & sCurrentlyEmplyed & "' 
AND TelPref='" & sTelPref & "' 
AND TelOther='" & sTelOther & "' 
AND TelMobile='" & sTelMobile & "' 
AND Email='" & sEmail & "' 

Next three lines have no ''

AND SourceOfEnquiry=" & sSourceofEnquiry & " 
AND EnqTakenBy=" & sEnqTakenBy & " 
AND DOB=" & sDOB & " 
AND Status='" & sStatus & "' 
AND Notes='" & sNotes
No "'; at end
Simon


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to