[AccessD] Setting Forms

Jeremy Toves itsame2000 at sbcglobal.net
Sat Sep 24 01:47:02 CDT 2005


That worked great.  
 
Thanks,
Jeremy

"Heenan, Lambert" <Lambert.Heenan at AIG.com> wrote:
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
-- 
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