[AccessD] Setting Forms

Heenan, Lambert Lambert.Heenan at AIG.com
Fri Sep 23 15:41:49 CDT 2005


Forms(strForm).Visible = True

I.e. you can reference the Forms collection using the name of the form as an
index into the collection.

Lambert

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves
Sent: Friday, September 23, 2005 4:07 PM
To: AccessD
Subject: [AccessD] Setting Forms


I hope somebody can help with this.  How can I set a form so that I can
specify the form name passing a variable.  
 
strForm = "frmTest"
[Forms]!strForm.Visible = True
 
I want to do something like this.  The form is reusable.  I'm guessing I
have to dimension a form variable and then set the object.  I'm just not
sure how. 

Thanks,
Jeremy Toves 
 
 
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list