Professional Documents
Culture Documents
All of the ones below get error '80040e14' ...incorrect syntax near the word 'list
the word below'
ISSUE #1
rs.Open "SELECT * FROM FullDump WHERE EventID = " & intEventID & " AND LocationID =
" & Session("LocationID"), cn, 3, 3
the syntax error is near the word 'AND'
FullDump is a 'view' in the sql database
rs.Open "SELECT * FROM FullDump WHERE EventID = " & intEventID &
" AND LocationID = " & Session("LocationID"), cn, 3, 3
End If
ISSUE #2
rs.Open "SELECT Events.EventID, Events.d_First, Events.d_Last, Events.e_Last,
Events.eventdate FROM dbo.Events INNER JOIN dbo.FSPs ON dbo.Events.FSPID =
dbo.FSPs.FSPID WHERE (Events.eventdate >= { fn NOW() } - 61) AND (Events.Status IS
NULL) AND FSPs.LocationID = " & Session("LocationID") & " ORDER BY Events.EventID
DESC", cn, 3, 3
Syntax error is near the word 'ORDER'
End If