Results 1 to 2 of 2
  1. #1
    skyrise is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Feb 2009
    Posts
    22

    Help Needed with Tab “Next Page” and “New Record” Buttons

    My database is divided out over 3 tab pages based on one Main Table and related subforms.

    I’m trying to come up with a “Next Page” command button script to move between tabbed pages so that the user doesn’t have to scroll all the way back to the top of the page to select the next tab.



    I’m also trying to get the New Record button to go to a new record on Tab1 and place the cursor on Field2. Currently, the New Record button is located on Tab3 and open a new record on Tab3.

  2. #2
    skyrise is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Feb 2009
    Posts
    22
    Looks like I got a couple of pieces of code to work for well for me on all Tab pages.


    For moving from tab to tab using command buttons (TY:don94403):

    Private Sub btnGoToTab3_Click ()
    Me!Field2.SetFocus
    End Sub


    For going to a new record using a command button (TY:Allen Browne):

    Private Sub btnNewRecord_Click ()
    If Me.Dirty Then Me.Dirty = False
    If Not Me.NewRecord Then RunCommand acCmdRecordsGotoNew
    End Sub

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

Similar Threads

  1. Replies: 1
    Last Post: 03-12-2009, 09:55 AM
  2. Access 2003 - Creating Buttons from a Table
    By Speedy in forum Programming
    Replies: 2
    Last Post: 02-28-2009, 05:32 PM
  3. Replies: 0
    Last Post: 02-11-2009, 06:43 PM
  4. Help needed desperately
    By tinyuna in forum Access
    Replies: 0
    Last Post: 05-03-2007, 02:18 AM
  5. Replies: 2
    Last Post: 04-11-2006, 08:40 AM

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