Очистка поля Вложение (Attachment) в Форме
Private Sub cmdВашаКнопкаОчиститьВложение_Click()
Dim rsAttachments As DAO.Recordset
Set rsAttachments = Me.Recordset!TestAttachment.Value
Do While Not rsAttachments.EOF
rsAttachments.Delete
rsAttachments.MoveNext
Loop
Me.attВашеПолеВложение.Requery
rsAttachments.Close
Set rsAttachments = Nothing
End Sub
|