Results 1 to 1 of 1
  1. #1
    Join Date
    Mar 2009
    Posts
    2

    GoToRecord from one subform to another (solved)

    Hoping I can explain this ok...



    Main form 'DataEntry', has two subforms.
    One is for the actual data entry (subform1).
    The other is a Continuous Forms view form that shows a filtered set of records from the table, call it subform2.

    What I want to do is add a button to the Continuous Form of subform2 that will locate the particular record in subform1.


    EDIT: Solved it... had to set the focus on the other subform first, rather than try and reference it from the GoToRecord command...

    Used this as the code behind OnClick for the command button:

    Parent.subform1.SetFocus
    DoCmd.GoToRecord , , acGoTo, Me.Job_Number.Value
    Last edited by TheWedgie; 03-15-2009 at 06:56 AM.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 12-10-2005, 04:52 PM
  2. Subform in a Subform and relationships
    By St3ph3n in forum Database Design
    Replies: 3
    Last Post: 12-06-2005, 06:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums