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

access 2000/97 VBA objects

Status
Not open for further replies.

grnfvr

MIS
Dec 21, 2000
111
0
0
US
I have a new job and am now using office 2000. They changed up the Access object library. specifically im having trouble seting the recordsource of a query. I have found the new allqueries collection. I have also found the accessobject object. how do i get to the query's recordsource property? Any help would be appreciated.
 
Set a reference to DAO 3.6 object library then use something like:

Dim qry as DAO.QueryDef

Set qry = Currentdb.QueryDefs(&quot;<query name>&quot;)
With qry
.SQL = &quot;SELECT blah blah&quot;
<set other properties of query here>
End With

M.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top