A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Open all forms on startup



 
 
Thread Tools Display Modes
  #1  
Old December 27th, 2006, 01:11 PM posted to microsoft.public.access,microsoft.public.access.forms,microsoft.public.access.formscoding
swarfmaker
external usenet poster
 
Posts: 17
Default Open all forms on startup

Crossposted as I'm not sure which is most appropriate group.

Using Access 2003
I'd like to be able to open all forms with prefix "frm" when the application
is first started up. All to be opened in hidden state.
I know I've seen the code for this somewhere, but can't find it now.
Can anyone help?
TIA
Iain, in Pudsey, UK


  #2  
Old December 27th, 2006, 02:17 PM posted to microsoft.public.access,microsoft.public.access.forms,microsoft.public.access.formscoding
Allen Browne
external usenet poster
 
Posts: 11,706
Default Open all forms on startup

Loop through the AllForms collection, checking the Name of each one.
DoCmd.OpenForm, using hidden as the window mode.

To loop through AllForms, declare your variable as an AccessObject.

BTW, it's probably not a good idea to have all those forms open in the
background with records loaded and (potentially) edits happening in all of
them.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"swarfmaker" wrote in message
...
Crossposted as I'm not sure which is most appropriate group.

Using Access 2003
I'd like to be able to open all forms with prefix "frm" when the
application is first started up. All to be opened in hidden state.
I know I've seen the code for this somewhere, but can't find it now.
Can anyone help?
TIA
Iain, in Pudsey, UK


  #3  
Old December 29th, 2006, 09:53 AM posted to microsoft.public.access,microsoft.public.access.forms,microsoft.public.access.formscoding
swarfmaker
external usenet poster
 
Posts: 17
Default Open all forms on startup

Many thanks Allen


"Allen Browne" wrote in message
...
Loop through the AllForms collection, checking the Name of each one.
DoCmd.OpenForm, using hidden as the window mode.

To loop through AllForms, declare your variable as an AccessObject.

BTW, it's probably not a good idea to have all those forms open in the
background with records loaded and (potentially) edits happening in all of
them.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"swarfmaker" wrote in message
...
Crossposted as I'm not sure which is most appropriate group.

Using Access 2003
I'd like to be able to open all forms with prefix "frm" when the
application is first started up. All to be opened in hidden state.
I know I've seen the code for this somewhere, but can't find it now.
Can anyone help?
TIA
Iain, in Pudsey, UK




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.