Dear gurus,
I have a question on how to call query with a parameter from ASP pages. To illustrate my problem with an example let's say, I have myDB.mdb and in it I have the following query named myQuery:
I also have something like this in an ASP file:
Question: what goes into strSQL=?????? instead of question marks to call the Access query and supply the parameter for it.
Thanks a lot in advance! ---
---
I have a question on how to call query with a parameter from ASP pages. To illustrate my problem with an example let's say, I have myDB.mdb and in it I have the following query named myQuery:
Code:
PARAMETERS currAge;
SELECT * FROM experts WHERE Age>currAge;
I also have something like this in an ASP file:
Code:
set cnn = Server.CreateObject("ADODB.Connection")
cnn.Open "driver={Microsoft Access Driver *.mdb)};;DBQ=d:/myDB.mdb;"
strSQL = ???????? ' here I want to call the above query and supply the parameter currAge!
set Results = cnn.Execute(strSQL)
Question: what goes into strSQL=?????? instead of question marks to call the Access query and supply the parameter for it.
Thanks a lot in advance! ---
---