Results 1 to 3 of 3
  1. #1
    Sam is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2022
    Posts
    50

    Prevent Form updating table

    Click image for larger version. 

Name:	Booking Form.jpg 
Views:	19 
Size:	93.6 KB 
ID:	49263

    I have this Form with some combos and subforms. As soon as selection is made from the top dropdown combo (EnqID) most of the fields get populated.


    At this stage if I close the Form, without clicking the 'Save and Close' button, the table gets populated. How do I prevent that until the Save and Close is clicked.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,530
    Use code in the forms Before Update event which can be cancelled. See: https://learn.microsoft.com/en-us/of...reupdate-event
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,858
    Or make the form unbound?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Prevent table from updating in query
    By BobV in forum Queries
    Replies: 4
    Last Post: 03-11-2020, 09:22 AM
  2. Updating Tables to prevent the Record Can't Update error
    By grasshopper212 in forum Database Design
    Replies: 3
    Last Post: 08-26-2019, 01:56 PM
  3. Replies: 2
    Last Post: 04-25-2018, 06:08 AM
  4. Replies: 3
    Last Post: 03-10-2014, 08:51 AM
  5. Replies: 8
    Last Post: 02-09-2012, 02:02 PM

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