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:
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
I have written the following code into the ASP page:
adoRecordSet = adoConnection.Execute("GetSUBQList "+Session('SIDSS') + Session("subject"));
Both the parameters are the Sessions.
Does anyone know the right syntax?