I've got a subform that I want to keep people from editing while allowing them to view all the data that's on there. Based on who they are and whether they should be able to edit or not I lock them out of editing the main form and various controls on the subform. I have code that theoretically locks the subform, but as far as I can tell it doesn't do anything.
The controls on the subform get locked by code like:
Forms!frmInputMainByEntry.Form!FrmSubInputDetail!Hours.Locked = True
This works for keeping users from editing the individual fields, but not from adding or deleting records from the subform. The subform doesn't seem to have the same allowadditions property the main form does. I can set the enable property to no for the subform, but then people can't scroll to the bottom of the subform entries.
Any ideas?
Thanks,
Mike Bruns
The controls on the subform get locked by code like:
Forms!frmInputMainByEntry.Form!FrmSubInputDetail!Hours.Locked = True
This works for keeping users from editing the individual fields, but not from adding or deleting records from the subform. The subform doesn't seem to have the same allowadditions property the main form does. I can set the enable property to no for the subform, but then people can't scroll to the bottom of the subform entries.
Any ideas?
Thanks,
Mike Bruns