How do you reference a control on a parent form from a subform? - ADO DAO RDO RDS

This is a discussion on How do you reference a control on a parent form from a subform? - ADO DAO RDO RDS ; How do you reference a control on a parent form from a subform? My subform is not tied with a unique identifier. The sub form is like a valid value table and I want to update a table that need ...

+ Reply to Thread
Results 1 to 4 of 4

How do you reference a control on a parent form from a subform?

  1. Default How do you reference a control on a parent form from a subform?

    How do you reference a control on a parent form from a subform?

    My subform is not tied with a unique identifier. The sub form is like a
    valid value table and I want to update a table that need the parent forms
    uniqueID.


    --
    Thanks,

    JSY
    MTTrader

  2. Default Re: How do you reference a control on a parent form from a subform?

    On Wed, 22 Aug 2007 23:28:01 -0700, MTTrader <MTTrader> wrote:

    >My subform is not tied with a unique identifier. The sub form is like a
    >valid value table and I want to update a table that need the parent forms
    >uniqueID.


    Normally, you would have the parent form related to the child form using the
    Master Link field and Child Link field; they'll be equal in value so you can
    just refer to the form control containing the child link field.

    Failing that...

    Parent!controlname

    refers to the control named controlname on the parent form.

    John W. Vinson [MVP]

  3. Default Re: How do you reference a control on a parent form from a subform

    I aware that is is a bit backwards but this valid value table can't be
    associated with the parent. It validates and populates the table that does.

    I'll give the Parent syntax a go thanks.

    Thanks
    --
    Thanks,

    JSY
    MTTrader


    "John W. Vinson" wrote:

    > On Wed, 22 Aug 2007 23:28:01 -0700, MTTrader <MTTrader> wrote:
    >
    > >My subform is not tied with a unique identifier. The sub form is like a
    > >valid value table and I want to update a table that need the parent forms
    > >uniqueID.

    >
    > Normally, you would have the parent form related to the child form using the
    > Master Link field and Child Link field; they'll be equal in value so you can
    > just refer to the form control containing the child link field.
    >
    > Failing that...
    >
    > Parent!controlname
    >
    > refers to the control named controlname on the parent form.
    >
    > John W. Vinson [MVP]
    >


  4. Default Re: How do you reference a control on a parent form from a subform

    Perfect Thanks

    --
    Thanks,

    JSY
    MTTrader


    "John W. Vinson" wrote:

    > On Wed, 22 Aug 2007 23:28:01 -0700, MTTrader <MTTrader> wrote:
    >
    > >My subform is not tied with a unique identifier. The sub form is like a
    > >valid value table and I want to update a table that need the parent forms
    > >uniqueID.

    >
    > Normally, you would have the parent form related to the child form using the
    > Master Link field and Child Link field; they'll be equal in value so you can
    > just refer to the form control containing the child link field.
    >
    > Failing that...
    >
    > Parent!controlname
    >
    > refers to the control named controlname on the parent form.
    >
    > John W. Vinson [MVP]
    >


+ Reply to Thread

Similar Threads

  1. How to pass Composite Control messages to the parent Form?
    By Application Development in forum CSharp
    Replies: 6
    Last Post: 11-21-2007, 02:06 PM
  2. Replies: 1
    Last Post: 11-15-2007, 03:12 AM
  3. Subform not working within single form
    By Application Development in forum ADO DAO RDO RDS
    Replies: 1
    Last Post: 09-13-2007, 11:58 AM
  4. Using data from a form control as part of a subform control calcul
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 05-07-2007, 09:44 AM
  5. Re: Reference a subform on a tabbed interface help
    By Application Development in forum ADO DAO RDO RDS
    Replies: 0
    Last Post: 07-14-2003, 04:02 AM