Recordset and Too Few Parameters

  • Thread starter Jackson via AccessMonster.com
  • Start date
J

Jackson via AccessMonster.com

Hi,

A couple of times I've tried to open a query as a Recordset in VBA which has
a date (set to an unbound text box on a form) as query criteria and I always
run into problems. It comes up saying Too Few Parameters, one required. Can
anyone help me explicitly tell VBA that the form text box is where it should
be looking for the parameter?

Thanks.
 
D

dymondjack

It depends on how you execute the statement. Certain methods won't evaluate
the expression pointing to the textbox.

Another method would be to store the value from the textbox into a variable,
and then insert the variable into the SQL.

If you need further information, please post your sql statement and the
method of execution.

--
Jack Leach
www.tristatemachine.com

- "Success is the ability to go from one failure to another with no loss of
enthusiasm." - Sir Winston Churchill
 

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