﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Prevent user from editing certain records...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 17:45:03 GMT</lastBuildDate><ttl>20</ttl><item><title>Prevent user from editing certain records...</title><link>http://forum.strataframe.net/FindPost3267.aspx</link><description>Which event do I use to check a condition then cancel the editing of a record?&lt;br&gt;
&lt;br&gt;
For example... I want to prevent the user from editing a record that has been closed. So I want to check the value of a field when they press the Edit button on the maintenance toolbar. If the value in that field matches closed then I want to cancel that edit and notify the user.</description><pubDate>Wed, 04 Oct 2006 12:41:29 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Prevent user from editing certain records...</title><link>http://forum.strataframe.net/FindPost3298.aspx</link><description>It's on the form, not the toolstrip.&amp;nbsp; MyForm.Edit().</description><pubDate>Wed, 04 Oct 2006 12:41:29 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Prevent user from editing certain records...</title><link>http://forum.strataframe.net/FindPost3297.aspx</link><description>Thanks Ben. I was not able to find the Edit called by the Toolstrip. Could you please tell me how to find it. Thanks</description><pubDate>Wed, 04 Oct 2006 12:40:03 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Prevent user from editing certain records...</title><link>http://forum.strataframe.net/FindPost3280.aspx</link><description>There is not an event hook to allow you to cancel an edit, but the Edit() on a form (the one that is called by the maintenance form toolstrip) is overridable, so you can override it, test your condition and then either bail or call the base Edit().</description><pubDate>Wed, 04 Oct 2006 09:35:57 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>