Results 1 to 1 of 1
  1. #1
    prsdad0 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Location
    Washington Court House, Ohio
    Posts
    1

    Next Button goes through Subform Records instead of Main Form

    I have a Main Form [frmInfo] that is linked to [tblOfficerInfo], this form has a Subform; [frmEntries] that is linked to [tblLogEntries]. [frmEntries] is set as a Continuous Form so as to show the multiple records associated with the record being displayed on [frmInfo]. [tblOfficerInfo] is on the One side of a one to many relationship with [tblEntries].

    My problem is when I click on the Next or Previous butttons (command buttons) that I have on [frmInfo] (the Main Form) it goes through all of the records in [frmEntries] (the SubForm) before going to the next record on [frmInfo], so if there are 40 records on [frmEntries] I have to click Next 40 times instead of 1 like I had hoped.

    I have tried the GoToRecord Macro and the following three examples of code on the Command buttons. I know they are all pretty much the same but I have no idew what else to do.

    Code:
    DoCmd.GoToRecord , , acNext
    and



    Code:
    DoCmd.RunCommand acCmdSelectRecord
    DoCmd.GoToRecord , , acNext
    and

    Code:
    DoCmd.SelectObject acForm, "frmInfo", False
    DoCmd.RunCommand acCmdSelectRecord
    DoCmd.GoToRecord acForm, "frmInfo", acNext
    Also the Link Master Fields and Link Child Fields are set correctly.

    Is it possible to accomplish what I want to do? If so I would greatly appreciate any help.
    Last edited by prsdad0; 07-26-2010 at 04:42 PM. Reason: Additional info

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

Similar Threads

  1. Subform won't display in main form
    By Lynn in forum Forms
    Replies: 15
    Last Post: 03-22-2010, 10:17 AM
  2. Replies: 1
    Last Post: 09-28-2009, 05:21 PM
  3. Replies: 0
    Last Post: 06-23-2009, 03:01 PM
  4. Replies: 7
    Last Post: 05-24-2009, 10:24 AM
  5. Subform vs main form calculation
    By fadone in forum Forms
    Replies: 17
    Last Post: 12-21-2005, 07:27 AM

Tags for this Thread

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