EDIT: Solution: The check-box "Use Access Special Keys" under File->Options->Current Database was not check. When checked, everything worked as expected!
Hi all,
I have an Access-application where I no longer get any automatic Compile Errors when running VBA-code via the Buton_Click-event in a form. Se the image below for example, when I press the button in the form, the button reacts in the GUI, but then nothing else happens.
I have to open the VBA-windows and choose Debug/Compile Database to see the error. Previously the VBA-window would open automatically and show the error.
If I create a new database with one form and one line of VBA-code, I get the expected behavior, the VBA-window opens automatically and shows the error. Therefore I guess the problem is a setting somewhere within the database itself, and not within the Access-application.
Also, in the same "problematic" Access-application I will not get prompted any Rutime Error-dialogues (not the standard, nor any by an ErrorHandler in the code). However, when opening the Access-database on another computer (same Windows 10- and Access-version, O365 Version 2102) I will get the Runtime Error-dialogues (but not the automatic the VBA Compile Error described above).
I've tried activating warnings with the line "DoCmd.SetWarnings True", but with no difference.
Is there any setting, either in the client or within the database itself that can give this problem? Would really appreciate any help with this since it's quit cumbersome to develop the application on my machine due to these problems!