Results 1 to 5 of 5

Thread: Subform to move record on "parent" form

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    3

    Subform to move record on "parent" form

    this was the motivation to finally register...

    I am trying to use docmd.gotorecord. The trouble is I am trying to use it on a subform to move to the record on the parent form.

    Some of the things I have tried...

    parent - Form_OrderDataEntrySubForm or
    [Forms]![Master]![OrderDataEntrySubform]

    subform combobox - subSelectOrderId

    on the sub-form - afterUpdate()
    ' DoCmd.GoToRecord acForm, Form_OrderDataEntrySubform, acGoTo, CInt(subSelectOrderID.ListIndex + 1)
    ' DoCmd.GoToRecord , Me.Parent, acGoTo, subSelectOrderID.ListIndex + 1

    Dim recordIndex As Long
    recordIndex = subSelectOrderID.ListIndex + 1
    DoCmd.GoToRecord , [Forms]![Master]![OrderDataEntrySubform], acGoTo, recordIndex
    ' Me.Parent.ListIndex = subSelectOrderID.ListIndex + 1


    Many thanks for any help...

    J.

  2. #2

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    3

    Re: Subform to move record on "parent" form

    Gracias!

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Subform to move record on "parent" form

    Moved to Office Development

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    3

    Re: Subform to move record on "parent" form

    bump...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width