[AccessD] A2K: Loop through Forms and close open forms

DWUTKA at marlow.com DWUTKA at marlow.com
Tue Jun 1 11:28:19 CDT 2004


Dim frm as Form
For Each frm in Forms
	DoCmd.Close acForm, frm.Name
Next

That should do it.

Drew

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK
Sent: Monday, May 31, 2004 6:47 PM
To: AccessD List
Subject: [AccessD] A2K: Loop through Forms and close open forms


Hello all

I want to loop through the Forms collection and close any form/forms that
is/are open.

Any suggestions?

Many thanks in advance

Darren

-- 
_______________________________________________
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