Re: Multiple instances of a form that has a subform

From: José Nuñez (Nuñez_at_discussions.microsoft.com)
Date: 01/03/05


Date: Mon, 3 Jan 2005 05:53:03 -0800

Thank you very much.

Regards.
José Nuñez
Montevideo

"Dan Artuso" wrote:

> Hi,
> As well, please read the sample code again from the link I posted.
> You will see that the form variable is declared in the 'Declarations' section
> therefore it stays in scope after the sub or function executes.
>
> --
> HTH
> Dan Artuso, Access MVP
>
>
> "Jose Nuñez" <josenunez70@hotmail.com> wrote in message news:esa#12S8EHA.4028@TK2MSFTNGP15.phx.gbl...
> > I've a simple test on the Microsoft's database sample
> > ("NorthwindReports.mdb").
> >
> > I write the following simple function:
> >
> > Public Function MULTIPLE()
> > Dim FRM01 As Form
> >
> > Set FRM01 = New Form_Orders
> > FRM01.SetFocus
> >
> > End Function
> >
> > I call this function from a macro. The form is shown just an instant and
> > it's closed.
> >
> > Regards.
> > José Nuñez
> >
> >
> >
> > "Dan Artuso" <dartuso@NSpagepearls.com> wrote in message
> > news:%23Mom3hS8EHA.1452@TK2MSFTNGP11.phx.gbl...
> > > Hi,
> > > I can't reproduce that behavior.
> > > I tried it with a form that contains a subform and it works as expected.
> > > The behavior you describe *sounds like* your form variable going out of
> > scope.
> > > Is that possible?
> > >
> > > --
> > > HTH
> > > Dan Artuso, Access MVP
> > >
> > >
> > > "Jose Nuñez" <josenunez70@hotmail.com> wrote in message
> > news:eArbbcR8EHA.3820@TK2MSFTNGP11.phx.gbl...
> > > > This is right to work with forms that haven't a subform. But, if the
> > form
> > > > has a subform the form is opened and then closed quikly.
> > > >
> > > > Regards.
> > > > José Nuñez
> > > > Montevideo
> > > >
> > > >
> > > > "Dan Artuso" <dartuso@NSpagepearls.com> wrote in message
> > > > news:%23%23jGhVQ8EHA.824@TK2MSFTNGP11.phx.gbl...
> > > > > Hi,
> > > > > This will show you how:
> > > > > http://support.microsoft.com/?kbid=210248
> > > > >
> > > > > However, if you need to keep track of the instances, you will have to
> > > > > implement a collection of these objects perhaps using the caption
> > > > > (which you would make unique when you create the instance)
> > > > > as an identifier.
> > > > >
> > > > > --
> > > > > HTH
> > > > > Dan Artuso, Access MVP
> > > > >
> > > > >
> > > > > "Jose Nuñez" <josenunez70@hotmail.com> wrote in message
> > > > news:eot090P8EHA.2572@tk2msftngp13.phx.gbl...
> > > > > > Is it possible to open multiple instances of a form which have a
> > > > subform?
> > > > > >
> > > > > > For example, I tried to open multiple instances of the form Orders
> > in
> > > > the
> > > > > > Northwind database and it was not possible.
> > > > > >
> > > > > > Thanks.
> > > > > > Regards.
> > > > > > José Nuñez
> > > > > > Montevideo
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>



Relevant Pages

  • Re: New riddle
    ... is it possible to send me ur source code that gives u 16 answers? ... > The main problem here may be to assure that there are 5 houses, ... > sensible rearranging of declarations. ... > Best regards, Verena ...
    (comp.lang.prolog)
  • Re: Help on array variables
    ... >> using an array variable with unknown elements. ... > Private MyArray() As String 'in the declarations section, ... >> Regards, ...
    (microsoft.public.vb.controls)
  • Re: DataGrid Bug ?
    ... with some small sample code? ... Regards, ... Alvin Bruney - ASP.NET MVP ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Windows System Icon Ballon Hint
    ... See the sample code: ... With best regards, Mike Shkolnik ... "Alexandre Moraes" wrote in message ... > I´ve created my program with a Windows System Tray Icon and I´d like to ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Re: TAPI V x.x in C#
    ... I've put a sample code in this forum. ... find for pedro airo, the one of the links is an example. ... > Best Regards ... > * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)