Results 1 to 6 of 6
  1. #1
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122

    Ensuring VBA Update Dont Break Functions

    Please advice, when brining in or making changes to VBA Code, which measures must i take to prevent the new code from breaking the fom.

    I have a form and im trying to upload data. Everytime i run the code im prompted with two form amendments. If i click either or one, then somehow my forms function break, like back or exit buttons dont work anymore. Please see screenshots.


    https://docs.google.com/document/d/1...f=true&sd=true

  2. #2
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    565
    For starters, are you using error trapping in your code? (Granted, error trapping in VBA is primitive to say the least).

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Learn to walk your code with breakpoints and F8
    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

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    See the debugging and Error links in my signature.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    I have links in my signature also Jack.
    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

  6. #6
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    Everytime i run the code im prompted with two form amendments. If i click either or one, then somehow my forms function break, like back or exit buttons dont work anymore. Please see screenshots.
    if you don't save the changes to your forms, whatever code you added will not work.



    Click image for larger version. 

Name:	Screenshot 2025-03-24 101206.png 
Views:	10 
Size:	30.7 KB 
ID:	52862
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

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

Similar Threads

  1. Replies: 2
    Last Post: 12-07-2020, 08:52 AM
  2. Ensuring no duplicates between 2 fields
    By johnvog in forum Database Design
    Replies: 1
    Last Post: 12-13-2014, 06:21 PM
  3. Replies: 1
    Last Post: 11-29-2011, 08:43 AM
  4. Ensuring Proper Data Entry
    By skg in forum Forms
    Replies: 5
    Last Post: 01-27-2011, 10:12 PM
  5. Ensuring Everything Works...?
    By catat in forum Access
    Replies: 1
    Last Post: 03-31-2010, 01:44 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