Hello,<\/p>\n
We have some reports we run out of ACCESS 2016 and the queries will run manually but the OnClick events set to occur when the buttons are clicked do nothing for about half (but not all) of the buttons with no real rhyme or reason or changes to our environment.<\/p>\n
I made a backup and attempted a Compress and Repair but had no luck there. Checked to make sure macros were enabled and also Trusted Locations were set. This database is not split currently. Any ideas would be greatly appreciated!<\/p>\n
Thank you<\/p>","upvoteCount":2,"answerCount":5,"datePublished":"2019-02-07T16:21:35.000Z","author":{"@type":"Person","name":"nathanmontoya","url":"https://community.spiceworks.com/u/nathanmontoya"},"suggestedAnswer":[{"@type":"Answer","text":"
Hello,<\/p>\n
We have some reports we run out of ACCESS 2016 and the queries will run manually but the OnClick events set to occur when the buttons are clicked do nothing for about half (but not all) of the buttons with no real rhyme or reason or changes to our environment.<\/p>\n
I made a backup and attempted a Compress and Repair but had no luck there. Checked to make sure macros were enabled and also Trusted Locations were set. This database is not split currently. Any ideas would be greatly appreciated!<\/p>\n
Thank you<\/p>","upvoteCount":2,"datePublished":"2019-02-07T16:21:35.000Z","url":"https://community.spiceworks.com/t/some-onclick-events-stopped-working/696548/1","author":{"@type":"Person","name":"nathanmontoya","url":"https://community.spiceworks.com/u/nathanmontoya"}},{"@type":"Answer","text":"
Is it the same buttons failing or random buttons?<\/p>\n
Have you tried placing a msgbox behind the button so that when they are pressed you can tell if the Event is firing?<\/p>\n
The issue may not be with the button/event but something else<\/p>","upvoteCount":1,"datePublished":"2019-02-07T18:28:07.000Z","url":"https://community.spiceworks.com/t/some-onclick-events-stopped-working/696548/2","author":{"@type":"Person","name":"paulfitzpatrick3","url":"https://community.spiceworks.com/u/paulfitzpatrick3"}},{"@type":"Answer","text":"
Make a copy of the form then rename the original. Change the name of the copy you made to what you want. See if that helps. I have have forms flake out and nothing I did seemed to help but I did not want to start from scratch and rebuild. Also when you do that try a compact and repair.<\/p>","upvoteCount":1,"datePublished":"2019-02-07T20:29:46.000Z","url":"https://community.spiceworks.com/t/some-onclick-events-stopped-working/696548/3","author":{"@type":"Person","name":"gregseales2","url":"https://community.spiceworks.com/u/gregseales2"}},{"@type":"Answer","text":"
I will have to try the msgbox and see what that produces, I came from a telecom background and am pretty inexperienced in Access unfortunately. I did try a copy, and strangely the old versions we have archived still have functional buttons, also the buttons that trigger macros rather than running queries comparing data tables are still working. I tried to Copy/Paste the code and recreate the onclick event as well.<\/p>","upvoteCount":0,"datePublished":"2019-02-08T14:07:09.000Z","url":"https://community.spiceworks.com/t/some-onclick-events-stopped-working/696548/4","author":{"@type":"Person","name":"nathanmontoya","url":"https://community.spiceworks.com/u/nathanmontoya"}},{"@type":"Answer","text":"
I was able to find some missing code by referencing an old archived copy and re-add that but the queries are no longer linked to the buttons on the broken version. When I go into design mode on the broken copy there is only Form Main Menu under Microsoft Access Class Objects. I checked the data table link manager and the data tables are linked I am trying to replicate the config of my old version that has working buttons currently.<\/p>","upvoteCount":0,"datePublished":"2019-02-08T15:06:28.000Z","url":"https://community.spiceworks.com/t/some-onclick-events-stopped-working/696548/5","author":{"@type":"Person","name":"nathanmontoya","url":"https://community.spiceworks.com/u/nathanmontoya"}}]}}