Hello,
I've searched quite a bit on this subject, and I never find an answer so I always revert back to keying in the sql statement into VBA and creating my ADO recordset. But, what I'd like to do is run the stored param query (it which works fine - it has one param and I entered the form's field name in the column and also on the Param window for the query.)
So, I start with the basics of the connection and recordset, I have a select parameter query called Query1. How do I open the recordset using my query?
dim cnn as ADODB.connection
dim rst as ADODB.recordset
set cnn = new ADODB.Connection
set cnn = currentproject.connection
set rst = new ADODB.Recordset
' need to open the recordset here...
thanks
Magster
I've searched quite a bit on this subject, and I never find an answer so I always revert back to keying in the sql statement into VBA and creating my ADO recordset. But, what I'd like to do is run the stored param query (it which works fine - it has one param and I entered the form's field name in the column and also on the Param window for the query.)
So, I start with the basics of the connection and recordset, I have a select parameter query called Query1. How do I open the recordset using my query?
dim cnn as ADODB.connection
dim rst as ADODB.recordset
set cnn = new ADODB.Connection
set cnn = currentproject.connection
set rst = new ADODB.Recordset
' need to open the recordset here...
thanks
Magster