Prevent another attachment

Hi list,

I would like to prevent a field to be modified when it’s being edited.

When it is created there is a field that must contain an attachment.

But from the first edition on, this attachment shouldn’t be modified.

How can I prevent this field to be editable?

The goal is not to add another attachment in the same document once is already created.

Anybody can help me ?

Subject: Several ways to do this

Hi, David. There are several ways to do this. I will list two ways here. First, you could put the field holding the attachment in a controlled access section where the formula for the controlled access section is something like @If(@Attachments>=1;“noonecanedit”;“”). This will allow users to edit the field in the section only if no attachments exist on the document. The second way of preventing editing to the attachment field is to use a computed subform where the formula says if an attachment exists on the document, then show the read only subform with the field on it. If no attachment has been attached to the document, then display the editable subform.

Subject: Attachments into section

I did it with control access section

thanks a lot!!

Subject: attachment control

Yes, could be, but this field must be accessible to everybody who edit the documentOnly the user that has created the document can edit.

Not sure if it’s posible to do it with access control section or even subform in read mode (I don’t know how to do it).