Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set a dao recordset object to a query with parameters

Status
Not open for further replies.

LaDeana1

Programmer
Mar 22, 2002
13
US
I have a query which uses a formfields as it's parameter. I can use code to open this query docmd.openquery however, when I try to set it as a dao recordset, I get "Too Few Parameters expected Expected 2."

I am using txtfromdate and txttodate from a form and the query runs great even in code. But DAO doensn't like it. Any Suggestions? Am I hitting a limitation?
 
Have a look here: thread701-938203

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top