Hello,
The code below results in a reported syntax error near the keyword "Select".
I copied most of this from a perfectly functioning application I worked on a
couple of years ago, that still works, just changing the references. I can't
see what it is referring to. The line number listed in the error message
references the open statement directly.
Dim rsCodes, strSelect, strEMsg, strLevel
Set rsCodes = Server.CreateObject("ADODB.Recordset")
strSelect = "SELECT * from MemberCodes WHERE code = '" & strCode & "'"
rsCodes.open strSelect, objConn
The objConn is set up in a connex.asp included file at the beginning of the
page:
Dim objConn
Set objConn = Server.CreateObject("
ADODB.Connection")
objConn.Open "Provider=SQLOLEDB; DataSource=****; " & _
"Database=*****; User ID=***; Password=*****"