I'm sorry very much,
Just subform work Ok
The subform with bound data table gives error
I created recordset by VBA and bound it at Form_Load time
and became Ok
Thank You again
"Illya Havsiyevych" <gavsi@ukr.net> wrote in message
news:bm0ajg$29s6$1@news.wnet.ua...[color=blue]
> Thank You again
>
> I'm not using ActiveX now.
> objEditForms is a collection to store refs to all instances of created[/color]
Forms[color=blue]
> .FillValues is Form method but we can skip it. It is not important
>
> If You are going to check smth do next:
> 1) create a form with a subform
> 2) create a code that can be visible outside mde that creates an instance[/color]
of[color=blue]
> this form
> 3) compile all above to mde
> 4) create other mdb, use this mde as reference
> 5) use code from mde to open an form
>
> The main difference is next:
> I'm not using DoCmd.OpenForm. In case of DoCmd.OpenForm all work
> but I have only 1 instance. But I'm trying to have many
>
> illya
>
> "Albert D. Kallal" <kallal@msn.com> wrote in message
> news:xaFgb.38800$9l5.1364@pd7tw2no...[color=green]
> > "Illya Havsiyevych" <gavsi@ukr.net> wrote in message
> > news:blv2d2$1h2s$1@news.wnet.ua...[color=darkred]
> > >
> > > ....
> > > Dim objForm As New Form_frmParentFormWithSubForm
> > >
> > > objEditForms.Add objForm
> > > With objForm
> > > .FillValues
> > > .Visible = True
> > > End With
> > > ....
> > >[/color]
> >
> > I think the above should work just fine. Am I to assume that[/color][/color]
objEditForms[color=blue]
> is[color=green]
> > a collection?
> >
> > Also, .FillValues. Is that a custom method of the form (ie: a public
> > function?). How does that code work?
> >
> > I don't see anything in the above that would case a mde not to work, and[/color][/color]
a[color=blue][color=green]
> > mdb to function. The only difference between a mde and mdb is that
> > un-trapped errors in a mdb re-set all your global vars. Perhaps you have[/color][/color]
a[color=blue][color=green]
> > un-trapped error in the mdb that resets your values (those values don't
> > re-set in a mde...but remain intact even AFTER un-trapped errors).
> >
> > I would spend some time checking the above.
> >
> > However, if you are really insisting on using a activeX control, then I
> > would suggest you ask your question for which activex control to use in[/color][/color]
a[color=blue]
> VB[color=green]
> > group, and not a ms-access group, as most here don't use he activeX[/color]
> controls[color=green]
> > due to the problems of references, and the need for a installer. I don't
> > know which activeX contorl is the best....but what is stopping you from
> > trying a few?
> >
> > --
> > Albert D. Kallal (MVP)
> > Edmonton, Alberta Canada
> >
kallal@msn.com
> >
http://www.attcanada.net/~kallal.msn
> >
> >
> >[/color]
>
>[/color]