Hello All
I was wondering if someone could offer a rather inexperienced person
some advice.
Im trying to get my asp page to look at an access data
I created the following query in access and it worked running it in
access.
However when i paste it into the asp page i get an "Expected end of
statement"
The code is as follows
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++
Dim strSQL
strSQL = "SELECT DISTINCT tblEventType.strEventTypeDescription,
tblEvent.strEventName "
strSQL = StrSQL & "FROM tblEventType INNER JOIN (tblVenue INNER JOIN "
strSQL = StrSQL & "(tblEvent INNER JOIN tblLINKVenue_Event ON
tblEvent.lngEventID = tblLINKVenue_Event.lngEventID) "
strSQL = StrSQL & "ON tblVenue.lngVenueID =
tblLINKVenue_Event.lngVenueID) ON "
strSQL = StrSQL & "tblEventType.lngEventTypeID =
tblEvent.lngEventTypeID "
strSQL = StrSQL & "WHERE
(((tblEventType.strEventTypeDescription)="Birthday s")) "
strSQL = StrSQL & "ORDER BY tblEvent.strEventName"
strSQL = StrSQL & ";"
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++
When i remove
__________________________________________________ _____________________
strSQL = StrSQL & "WHERE
(((tblEventType.strEventTypeDescription)="Birthday s")) "
__________________________________________________ _____________________
It doesnt give this error and outputs records from the database
Can anyone see why this line is causing the error
Thanks in advance