Ok, first up, GREAT idea to remove the control, great idea to go the EXTRA mile and eliminate as MUCH as possible.
The basic BOTTOM line is a super simple line of code that is 100% hardcoded with the form does not work. (so suggesting’s to try MORE complex code is not the approach to find and
fix this program).
Ok, so the simplest ONE line of code does not work:
Troubleshooting:
You have suggested that using an accDB works just fine? (yes/no?)
You have suggested that the code compiles fine, but running the compiled accDE does NOT work? (yes/no?).
Above being the case, then try launching Access first and THEN opening the accDE – does the code STILL fail?
If you are answering yes to all of the above (and many of my clients are), then you being bitten by a VERY nasty issue – the new 2016 format (internal).
The issue is due to the original database having been created in a version prior to 2016. The only real solution is to create a new blank database in 2016, and then import everything.
Now, re-try the above steps/questions – and post back that it now works (bottoms to dollars, it will).
I assume for all testing you doing this on your one computer, and the accDE and that SUPER simple one line of code is failing on your computer.
Regards,
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada