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

Editing Fields in a Form when the form Doesn't allow edits

Status
Not open for further replies.

mehgan

Technical User
Mar 28, 2002
6
US
I have developed my form to not allow edits for fear of accidents occurring and vital data being lost. BUT when the time comes some of my fields will need to be edited. I have developed an "EDIT" command, but need to know the how to write the expressions so that when the edit button is hit, a field CAN be edited and saved without leaving the Form Design to allow edits...can anyone help?

Thanks
 
To allow edits to any field on the form you will have to set AllowEdits to True.

The better way to do it, is to set the Locked property to True for all the fields on the Form. This will prevent someone from changing the value.

Then behind the Edit Button, you can change the Locked Property to false for only those fields you wish to be edited.

When you are done editing, you can then relock those controls that you unlocked.

You may also want to change the background color of the controls that you are allowing edits to so that the user knows what controls they can edit.

Another way would be to set the Enabled Property of the controls to False. This also locks out changes to a control.
Pat B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top