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

Declaring variables 1

Status
Not open for further replies.

Tronsliver

Technical User
Sep 19, 2000
120
US
I'm using a class module attached to a specific form. My intent is to build a number of functions to search a query for information. How can I declare the recordset so its scope is visable to all functions?

Dim rst As Recordset

Set rst = CurrentDb().OpenRecordset("qryAuth/Ass", dbOpenDynaset)

Thanks
 
You can't in a class module behind a form.

You need to create standard module or custom class to make the scope public.

Ed Metcalfe.

Please do not feed the trolls.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top