ADO parameter query

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Back
Top