Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locking a Subform... 1

Status
Not open for further replies.

dakota81

Technical User
May 15, 2001
1,691
US
I want to have a checkbox, that when checked, locks the subform. It works, I lock the child (as it's called by default), and I cannot edit any records in the subform. I am able to delete records, though. How can I prevent this too? The subform is in datasheet view. I'm running Access 97.
 
Try this:

Me.SubFormName.Form.AllowDeletions = False

You can also do AllowEdits & AllowAdditions Jim Lunde
compugeeks@hotmail.com
We all agree your theory is crazy, but is it crazy enough?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top