Affichage des articles dont le libellé est Open recordsets as public or global variables. Afficher tous les articles
Affichage des articles dont le libellé est Open recordsets as public or global variables. Afficher tous les articles

Open recordsets as public or global variables

mercredi 22 avril 2015

Is there any way of opening recordsets as public or global in a form??

E.g. if i do something like

Set rs = db.OpenRecordset("TblCustomers", dbOpenSnapshot, dbReadOnly)

the variable rs should be available in all the private sub i have on that form, and i should be able to access records without opening database/recordsets for individual subs.
Open recordsets as public or global variables

Labels