Good Day!
Asking for help regarding Attachments

I have LABEL and ATTACHMENT
MaxAttachment required : 1
LABEL : remv
Attachment Control :
ITEM : LookUp (minutes,ID = ThisItem.ID).Attachments
OnRemovedFile : Set(remv,"removed")
OnUndoRemovedFile : Set(remv,"stay");
MaxAttachments : If(Label50.Text="removed",2,If(Label50.Text="stay",1))
What I'm trying to do is
When I delete the attachment, MaxAttachement will add a value of +1 and I can add another file.
then when I undo the file the unsaved file will be deleted and MaxAttachement will - 1.
is this possible?
thanks and advance