Results 1 to 4 of 4
  1. #1
    path479 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    6

    How to stop changes updated to database when changing tabs in TabControl

    I have a form "Customer Details" with a tab control. The header information in this form is from the Customer table

    The tab control has 3 tabs. T
    • The 1st and 3rd tabs are also displaying information from the Customer table.
    • The 2nd tab "Orders" consists of subform "Order Listing". Data is from the Orders table.


    When changes have been made to any of the fields in the header, 1st tab or 3rd tab AND move among these three sections, none of the changes are updated to the Customer table until the Save button is clicked. This is working as intend.

    However if one make the changes and click onto the 2nd tab, all the changes are committed to the database. Is there anyway to catch this and stop the update in the database? We want the user to use the Save button to commit changes made. We also have a Cancel button to undo any changes made on the form.



    I have tried using MessageBox to display the values in the OnClick event in both the Tab Control and at the page tab level. However it seems the data has been committed even before the OnClick event.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The only way I know would be with UNBOUND form.
    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
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430

  4. #4
    path479 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2016
    Posts
    6
    Hi Ajax,

    I am glad you to point this out. I have never used forum before and wasn't aware of this. Thank you,

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

Similar Threads

  1. Replies: 8
    Last Post: 09-18-2015, 01:52 PM
  2. Replies: 2
    Last Post: 10-09-2012, 12:52 AM
  3. Replies: 7
    Last Post: 01-29-2012, 07:44 AM
  4. Replies: 3
    Last Post: 12-14-2011, 02:50 PM
  5. Stop Access Changing My Data
    By R3mix3r in forum Access
    Replies: 5
    Last Post: 09-11-2011, 10:33 PM

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