I want to run a SQL query stored in Microsoft Access with 2 parameters from an ASP page.
It works with one parameter... but says the following code with two parameters:
I have written the following code into the ASP page:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.
/papers/maths/checkSubject.asp, line 9
Both the parameters are the Sessions.
adoRecordSet = adoConnection.Execute("GetSUBQList "+Session('SIDSS') + Session("subject"));
Does anyone know the right syntax?