Danke schön @JosefP.
I knew I had answered the question before but hadn't searched for the link
Is it possible to lock a VBA project with VBA instead of doing it manually by going to the Tools menu, select Properties and protection tab? Best Regards
www.access-programmers.co.uk
@KitaYama
Although it can be done, do note the many caveats mentioned in that thread
1. It requires the use of SendKeys and the characters required are language dependant
2. VBA password protection is easily bypassed
3. Even when locked, a list of all procedures together with arguments is still accessible unless you use Option Private Module
4. Option Private Module is only available for Standard/Class Modules. A list of procedures etc in Form/Report modules is still visible.
Taken together, locking a project is of limited value and I rarely bother.
Use it as one part of a set of security measures but don't rely on it alone