I am trying to create global code for navigation use in all my forms --
including subforms. I searched, and searched, but can not find how to
globally reference a subform object. I need to have the navigation
buttons on the subform itself, but I would like to code to be global so
I can reuse it in my many subforms.
but only as a control in the partent form. So how can I change records
in a control?
I have tried to reference the subform every way I could think of, or
could find here or in help:
Forms![frmMyParentForm]![ctrlMySubFormOb ject].Form
Forms![frmMyParentForm]![ctrlMySubFormOb ject].SourceObject
I have also tried doing this via a string for the form name, and using
the form object. I think I would rather use the form object, as I would
also like to do some other things beside change records (enable/disable
buttons, ext)
Can someone help me here, or point me to some more info? Thanks in
advance.
Jeff Smeker
including subforms. I searched, and searched, but can not find how to
globally reference a subform object. I need to have the navigation
buttons on the subform itself, but I would like to code to be global so
I can reuse it in my many subforms.
>From what I understand, a subform can't be referenced as an open form,
in a control?
I have tried to reference the subform every way I could think of, or
could find here or in help:
Forms![frmMyParentForm]![ctrlMySubFormOb ject].Form
Forms![frmMyParentForm]![ctrlMySubFormOb ject].SourceObject
I have also tried doing this via a string for the form name, and using
the form object. I think I would rather use the form object, as I would
also like to do some other things beside change records (enable/disable
buttons, ext)
Can someone help me here, or point me to some more info? Thanks in
advance.
Jeff Smeker
Comment