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!

Is there a way to lock records in o 1

Status
Not open for further replies.

jommyjet

Technical User
May 19, 2003
49
US
Is there a way to lock records in one field so that they can never be changed?
 
The easiest way is to make sure your data are accessible only via forms/reports, and that you can then set the form's locked property to true on the field even when editing records (ie only allow edits on new records).

John
 
how do you allow access to queries/forms only through reports? is it the isloaded property? thanks John
 
First, have a proper user interface implemented with forms and commandbars, so you can then implement Access security to stop people accessing table/form/report design.

You can then have VBA code which conditionally unsets the locked property of the key textboxes if it is set to add a new record, or make it read only otherwise.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top