AllowEdits, etc., properties not functioning

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
 
A

Allen Browne

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.
 
M

MRichards

Thanks for the info. Some field were being modified in the OnCurrent event,
which caused the problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top