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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use a query in code?

Status
Not open for further replies.

hazelett

Programmer
Jun 29, 2001
15
US
I need to know how to use one of my existing queries as the record source using vba. I've tried the examples in my book but it never works. I am trying to export this data from the query into and ascii file but never get a recordset that I can use. Any information would be most appreciated and a clear example or two in code would be wonderful. I'm using access 2000.

Thanks

Terry
 



is this what you looking for?

Set oRS = oConn.Execute("qryQueryName")

Stew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top