You can place the code in the form module or in a stand alone module. You call the subs any way you wish. The point I think you are missing is that the code needs to be executed only once. Then, from that point, the shift will not be active during the startup again until you execute the sub that re-enables the shift key. It does not need to be executed each time the db is started up. The code turns the shift key "Off" by altering it's property. This property will remain in this state until the the property is altered again by running the re-enable code. This is why it is extremely important for you to have a way to reset the shift key to "On", or you will have also locked yourself out.
Be very careful.....make a backup, just incase you do something wrong.
HTH
RDH
Ricky Hicks
rdhicks@mindspring.com