Results 1 to 7 of 7
  1. #1
    Datament is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2023
    Posts
    18

    Access DB shuts down on click of a textbox

    Hello All,

    How can I resolve the issue of a database shutting down after a user clicks on a particular control.



    Everything works fine in the db, user can tab to and click on all the textboxxes without any issue, but once a user tabs to or clicks on "Payment" textbox the db shuts down.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Is your db split with the back end on a server and each user has their own copy of the front end? If not then the form may be corrupted. Or perhaps the control is running code causing the app to close

  3. #3
    Datament is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2023
    Posts
    18
    Yes, db is split and each user has a copy of the front end.

  4. #4
    Datament is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2023
    Posts
    18
    Yes, db is split and each user has a copy of the front end.

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    so no comment on whether you have any code executing when the control is clicked?

    If you do - show the code

    With so little information provided, all I can suggest is recreate the form, or better create a new db front end, import all objects except the form in question then recreate the form from scratch

  6. #6
    dblife's Avatar
    dblife is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2011
    Location
    South Shields, UK
    Posts
    104
    I am not sure how much you know about how to use the Access form designer so I will go for the obvious of how to troubleshoot this.
    Open the form in design mode.
    Click on the control or field that seems to be be causing the issue.
    Press f4 on your keyboard and the Properties panel should open.
    Go to the events tab in the properties and make sure there is no code in any of the 'On Click' or 'On Focus' fields etc.
    If there is an entry in any events field, click on the ... at the side and you will see the VBA code for that event.
    If you don't understand what that code is, post it here and we might be able to help.
    If all the fields are empty, there could still be rogue code happening in the form's 'On Load' event, you will have to check the main form's VBA code.

  7. #7
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    All good suggestions...but, but Controls do get corrupted, as well as Forms, and I think the simplest thing to try, first, would be to delete the offending control, then recreate it. IF that works, remember to replace all of your users Frontends!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Replies: 9
    Last Post: 03-12-2019, 08:25 AM
  2. Replies: 11
    Last Post: 11-02-2018, 06:23 PM
  3. Replies: 2
    Last Post: 01-26-2016, 08:08 AM
  4. Replies: 4
    Last Post: 02-28-2013, 10:43 AM
  5. Replies: 3
    Last Post: 10-16-2011, 02:51 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