R
Reggie Laffond
I am trying to create a recordset in code which has as its source a query
that has a user parameter (in this case a four digit year). I assumed that
when the Openrecordset fired that the user would be prompted to enter the
parameter. Instead an error dialog box pops that states something like "Too
few arguments - expected 1". I'm sure it's because the query is not being
passed any parameters by the openrecordset method. Is there a way to
accomplish what I am trying to do? I could prompt the user for the year
prior to the code executing but how can I then get it to the query.
Thanks in advance
that has a user parameter (in this case a four digit year). I assumed that
when the Openrecordset fired that the user would be prompted to enter the
parameter. Instead an error dialog box pops that states something like "Too
few arguments - expected 1". I'm sure it's because the query is not being
passed any parameters by the openrecordset method. Is there a way to
accomplish what I am trying to do? I could prompt the user for the year
prior to the code executing but how can I then get it to the query.
Thanks in advance