ADO parameter query

G

Guest

I am trying to open ado recordset based on a query that contains parameters.
Is this possible? I'm getting a "Too few parameters. Expected 0." message so
I must be missing something.

Here's my code

Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset

rst.Open "qrydetailPL", CurrentProject.Connection, adOpenDynamic,
adLockOptimistic, -1


Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top