Gustav Brock
gustav at cactus.dk
Mon Mar 17 03:44:00 CST 2003
Hi Drew That's right. /gustav > 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 > not? > 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.