I'm trying to add a toggle button to a form that will lock and unlock the form to prevent inadvertant editing errors.
I've looked up all of the code I could find on this issue and still run into errors and problems (my VBA level is beginner). Any help would be great.
I have a form with two sub-forms:
frmPhysician
subfrmPhysicianAddress
subfrmPhysicianShipments
I am placing a toggle button with a picture of a lock named tglLockUnlock
I want the form to load with the toggle button depressed and the form set to No Edits. Then I want the user to push the button to lock or unlock the record for edits. And if the user goes to a new record I want to prompt the user to lock the record if they have not done so.
Any simple code I could use? Thank you!
I've looked up all of the code I could find on this issue and still run into errors and problems (my VBA level is beginner). Any help would be great.
I have a form with two sub-forms:
frmPhysician
subfrmPhysicianAddress
subfrmPhysicianShipments
I am placing a toggle button with a picture of a lock named tglLockUnlock
I want the form to load with the toggle button depressed and the form set to No Edits. Then I want the user to push the button to lock or unlock the record for edits. And if the user goes to a new record I want to prompt the user to lock the record if they have not done so.
Any simple code I could use? Thank you!
Last edited: