AllowEdits, etc., properties not functioning

  • Thread starter Thread starter MRichards
  • Start date Start date
M

MRichards

I have a form with the initial settings for Allow Edits, Deletions,
Additions, and Data Entry set to "No". I want the form to open with the data
protected. There is a button on the form that toggles between "Edit" and
"Protect", setting the properties accordingly.

The problem is that the field are editable when the form opens, even though
the properties are set to no/false, which I have verified with debug.print
statements. If I toggle the button (i.e., set all properties to permit
changes, then set them back to protected) the protection then works
correctly.

What am I missing?

Thanks,
Mark
 
Something in your code is dirtying the record.

You can verify that is the cause by displaying the Record Selector on the
form. Instead of a triangle, the record selector contains a pencil icon when
the record is dirty.

Microsoft realised that you would be stuck if they did not allow you to
finish the edit and save the record before blocking edits.
 
Thanks for the info. Some field were being modified in the OnCurrent event,
which caused the problem.
 
Back
Top