dbTalk Databases Forums  

Find Forms With Subforms

comp.databases.ms-access comp.databases.ms-access


Discuss Find Forms With Subforms in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve
 
Posts: n/a

Default Find Forms With Subforms - 10-11-2008 , 07:48 PM






Is there a way to programatically determine if a closed form has one or more
subforms and if it does output the source object of the subform control(s)?
I can't open the form and iterate through the form's controls collection
because the form has an open event that opens a dialog form that provides
parameters to the rowsource of the form.

Thanks!

Steve



Reply With Quote
  #2  
Old   
Arvin Meyer [MVP]
 
Posts: n/a

Default Re: Find Forms With Subforms - 10-11-2008 , 09:46 PM






The open event does not fire if the form is opened in design view, but I
don't think that you expressly need to open it anyway. Iterating through
first the form controls looking for a controlype of acSubform will find the
correct object. Then you must access the form property of the control to
output the source object.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Steve" <nonsense (AT) nomsense (DOT) com> wrote

Quote:
Is there a way to programatically determine if a closed form has one or
more subforms and if it does output the source object of the subform
control(s)? I can't open the form and iterate through the form's controls
collection because the form has an open event that opens a dialog form
that provides parameters to the rowsource of the form.

Thanks!

Steve




Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.