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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lock a single record in a form

Status
Not open for further replies.

Delano29

Technical User
Jul 10, 2001
28
US
Hi,

I am using Access 2000. I have this form that brings up selected records in a table to edit, delete, etc. I have this one particular record in the table that is linked to the form that I do not want deleted or modified by the user in any way (I am sort of using it as a place holder in certain other forms and reports). Is there a way to lock this single record in the table/form using code or any other method?

Thanks in advance.
 
In the Current event procedure of the form set the AllowDeletions and AllowEdits properties depending of your particular record.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top