Results 1 to 5 of 5
  1. #1
    kets0985 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    7

    Prevent switching between tabs in Navigation form when task is active

    Hello,



    I have a 4 forms in my navigation form. Each form is use to record different task.

    I want to prevent users to switch to other tabs when they have a active task in any of the tab.

    Means, if they started with the task in one form they should not be able to select or go to other form in navigation form.

    Could you please assist me in this case ?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Try opening the form in modal mode.
    docmd.openform "frmEntry",,,,acModal

  3. #3
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Click the Windows icon in top left corner, then in bottom right of the menu select Access Options. Go to 'Current Database'.

    If you uncheck 'Display Navigation Bar' (towards bottom) the left hand menu consisting of all the db's tables, forms, queries, reports, etc. will not be visible when opened. Further, if you uncheck 'Display Tabbed Docuement' (towards top) the user will not see any of the forms, reports, queries, etc. that they have opened. (Along the top, the tabs will not appear).

    If you decide on both these options you will need a fluid database so user does not get stuck somewhere, or cannot access a form or report they need.

  4. #4
    kets0985 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    7
    I tried opening the form in modal mode, but it doesn't help.

    I have hidden the navigation pane, toolbar, menu bar everything. I have a navigation form, which include 4 subforms which records different set of data.

    My problem is, when a start entering the data in 1 subform, then I should not be able to switch the form before I undo the data entry or submit the data to database.

  5. #5
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    If Me.Dirty then MsgBox "Submit data or reset form to continue"
    Exit Sub
    End If

    Add a reset button to easily allow users to reset the form:
    Sub cmdReset_Click()
    Me.Undo
    End Sub

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

Similar Threads

  1. Replies: 12
    Last Post: 10-23-2014, 02:08 AM
  2. Replies: 5
    Last Post: 06-05-2013, 05:59 PM
  3. Replies: 0
    Last Post: 10-28-2012, 12:20 PM
  4. Tabs for Active Records on a Form
    By drewsmama in forum Programming
    Replies: 3
    Last Post: 07-30-2011, 02:17 PM
  5. Replies: 2
    Last Post: 01-15-2011, 10:56 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