[AccessD] How do I tell if a form is opened as a subform or n ot?

Drew Wutka DWUTKA at marlow.com
Mon Mar 17 00:53:01 CST 2003


Oh, wait a minute.  It should work if it is called immediately on the form
load event, because if I remember right, it was a static function, so it
only 'checks' once.  

Drew

-----Original Message-----
From: Gustav Brock [mailto:gustav at cactus.dk]
Sent: Sunday, March 16, 2003 3:23 AM
To: Drew Wutka
Subject: Re: [AccessD] How do I tell if a form is opened as a subform or
n ot?


Hi Drew

> It's not strange.  The method you had checks to see what the last object
in
> the Forms collection is.  As soon as the form is opened as it's own form,
> then all instances show up as being non-subforms.

No Drew, the first instance - where the form IS a subform - still
reports itself as a subform here. The strange part is that this
apparently does not happen to you ...

/gustav


> You have a main form with your MC as a subform. You then open form MC
> as a main form and then the check fails? Strange.

_______________________________________________
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