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 & "' AND SourceOfEnquiry=" & sSourceofEnquiry & " AND EnqTakenBy=" & 
sEnqTakenBy & " AND DOB=" & sDOB & " AND Status='" & sStatus & "' AND Notes='" & sNotes


---------------------------------------------------------------------
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