Heenan, Lambert
Lambert.Heenan at aiuholdings.com
Fri Apr 17 13:16:32 CDT 2009
I wonder if the original, mark 1 version of "IsLoaded" would work any better. I've been using this since for ever and never had a problem...
Function IsLoaded(FrmName As String) As Boolean
Dim i As Integer
IsLoaded = False
For i = 0 To Forms.Count - 1
If Forms(i).Name = FrmName Then
IsLoaded = True
Exit Function
End If
Next i
End Function
HTH
Lambert
-----Original Message-----
From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte
Sent: Friday, April 17, 2009 2:03 PM
To: accessd at databaseadvisors.com
Subject: Re: [AccessD] ISLOADED fails?
Ok...example:
form1 and form2
form1 is open...when it closes I want form2 to close, if it is open. I use isloaded("form2")...this is returing false...whether form2 is open or not?
Thanks,
Mark
>
> OK, under what conditions? If you're trying to test whether the form
> has finished loading, like from within the form, that won't work.
>
> Charlotte Foust
>
> >
> > What object are you testing or trying to test? Subreports and
> > subforms
>
> > don't return a true, IIRC, only their parent.
> >
> > Charlotte Foust
> >
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
_________________________________________________________________
Windows Live(tm): Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1b_explore_042009
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com