Results 1 to 3 of 3
  1. #1
    stardust1979 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2014
    Posts
    7

    Returning to a specific tab on a form

    Hi,



    I am trying to break from a routine and return to a form on a specific tab, here is my code......

    ----------------------


    retvalue = MsgBox("WorkRequest is Completed but no Completion Date entered, do you wish to enter a Completion Date?", vbYesNo)

    If retvalue = 6 Then
    ' Return to form - Tab project Management
    Exit Sub

    End If


    --------------------

    What do I need to do before the "Exit Sub" to ensure when they return to a specific tab on my form ??

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Is this using a Tab control? What is the name of the tab page? Maybe like:

    Me.pge1.SetFocus
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    stardust1979 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2014
    Posts
    7
    sorry I worked it out - just need to setfocus - duh!!

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

Similar Threads

  1. Replies: 2
    Last Post: 01-14-2015, 12:00 PM
  2. Returning a specific count on a web form
    By Bobwords in forum Forms
    Replies: 9
    Last Post: 07-07-2014, 12:58 PM
  3. Replies: 10
    Last Post: 12-27-2013, 02:54 PM
  4. Returning a recordset for a form
    By Newby in forum Access
    Replies: 6
    Last Post: 02-28-2013, 09:59 AM
  5. Form returning last blank table row
    By Dannat in forum Forms
    Replies: 5
    Last Post: 01-30-2012, 08:36 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