sparks <sparks@anywhere.com> wrote in
news:h5g2c1hk4ake2i1lj8ke2qur65f5f0s27c@4ax.com:
[color=blue]
> On Tue, 28 Jun 2005 03:37:58 GMT, "Larry Linson"
> <bouncer@localhost.not> wrote:
>[color=green]
>>"rkc" wrote
>>[color=darkred]
>> > Any form that is open is part of the
>> > Forms collection so you can
>> > pass it to your function as
>> > Forms("FormName").[/color]
>>
>>Spl. Note: a Form displayed in a Subform Control is not "Open" and
>>thus not in the Forms collection. It can be addressed as the Form
>>property of the Subform Control in which it is displayed.
>>
>>And, if the form you want is not open, you can open it with
>>
>> DoCmd.OpenForm formname,.....[/color]
>
> this sounds like what we are seeing...subforms are not open.[/color]
Subforms *are* open -- they are just open as sub-objects of other
forms, not as part of the forms collection itself.
[color=blue]
> so I just need to keep track of controls on the form and when
> done, open the next form on the list and go from there..[/color]
You can pass a form reference to your code that refers to a subform.
The form reference for a subform is going to look something like
this, though:
Forms!ParentForm!SubformControlName.Form
That kind of reference can be passed to your function.
--
David W. Fenton
http://www.bway.net/~dfenton
dfenton at bway dot net
http://www.bway.net/~dfassoc