How to I set a value to objects for use later

Zak14

Registered User.
Local time
Today, 02:44
Joined
Jun 27, 2014
Messages
166
How would I say this:

If ctl.Visible = False Then
Set ctl to "ilovepizza"

So later, I can call it saying:

ilovepizza.Visible = False
 
Code:
dim foo as Access.Control

if not ctl.visible then
   set foo = ctl
end if

[COLOR="Green"]'then later you can do . . .[/COLOR]

if not foo is nothing then
   foo.visible = false
end if
hope that helps,
 

Users who are viewing this thread

Back
Top Bottom