How to I set a value to objects for use later (1 Viewer)

Zak14

Registered User.
Local time
Today, 05:34
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
 

MarkK

bit cruncher
Local time
Yesterday, 21:34
Joined
Mar 17, 2004
Messages
8,186
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

Top Bottom