Approach User Support homepage Approach User Support
Answers to Frequently Asked Questions about Lotus Approach
Examples LotusScripts
Example databases
Links to other Lotus Approach support services

[Return to contents]

Stopping users from deleting records

Last updated: 16 Jun 2001

You can't actually disable the delete function.

The easiest way around this is to use a custom menu that doesn't contain Delete Current Record or Delete Found Set so that the user doesn't have access the Delete Record menu item. This also disables the CTRL-Del Hot Key for deleting a record, so they won't be able to use that either.

Alternatively you display information in calculated fields and getting its contents from the fieldbox's Text property in LotusScript.

CurrentView.Body.CalcFieldName.Text

Note that the object name becomes the calculated field name. You can't edit the object name of a control bound to a calc field and if you subsequently rename the calc field the object name doesn't change. This can get very confusing when identifying objects in the IDE!

[Return to contents]

© Copyright, JohnBrown, Trademarks, Disclaimer, Acknowledgements.