• Pulling subform values (Access 2000 SR-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Pulling subform values (Access 2000 SR-1)

    Author
    Topic
    #393922

    How do you pull values from a subform? I know that forms use the Forms![Form Name]!.Field.Value syntax, but I’m not sure how to get a value from a subform. I’ve looked high and low in the Access Help and on the Web, but have had no luck.

    Thanks,
    Bob

    Viewing 3 reply threads
    Author
    Replies
    • #718001

      In Access 97, Help has a topic: Referring to subforms in expressions , that say this:

      To refer to a subform or subreport
      Refer to the subform or subreport control on the form or report that contains the subform or subreport, 
      then use the Form or Report property of the control to refer to the actual subform or subreport.
      • #718021

        Thanks, that worked.

        In VBA, I used:

        PrimaryCR = [Forms]![Corrections Entry]![CR Subform].[Form]![CorrCR]

        Where Corrections Entry is the main form, CR subform is the subform, and CorrCR is the field value I want from the CR subform.

      • #718022

        Thanks, that worked.

        In VBA, I used:

        PrimaryCR = [Forms]![Corrections Entry]![CR Subform].[Form]![CorrCR]

        Where Corrections Entry is the main form, CR subform is the subform, and CorrCR is the field value I want from the CR subform.

    • #718002

      In Access 97, Help has a topic: Referring to subforms in expressions , that say this:

      To refer to a subform or subreport
      Refer to the subform or subreport control on the form or report that contains the subform or subreport, 
      then use the Form or Report property of the control to refer to the actual subform or subreport.
    • #718258

      Here is a document on all the ways to refer to a subform. I would like to give credit, but I do not remember where I got this on the net.

    • #718259

      Here is a document on all the ways to refer to a subform. I would like to give credit, but I do not remember where I got this on the net.

    Viewing 3 reply threads
    Reply To: Pulling subform values (Access 2000 SR-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: