Wrox Home  
Search P2P Archive for: Go

  Return to Index  

vba_access thread: dao control taking query with parameter


Message #1 by "mike wilson" <chopswil@a...> on Sun, 27 Jan 2002 19:49:18
Hello,
  I have a dao data control whose recordset i want to be a query.
  Problem is the query takes a parameter.
  normally this works daoData.RecordSet ="MyQuery"
  but this fials with the error meesage "expecting 1 paramter"
  I know how to do this with a QueryDef object but not a dao data control.
  how can i open the query using the dao data control and pass the 
paramter?

Thank you,

Mike Wilson

  Return to Index