Reputation: 33
So I have a double click event on an OLE object to send an email and after that executes the attachment dialog comes up. I have the field locked so the user cannot update the picture anyway but I would prefer it not show at all. Is there anyway to suppress this dialog?
Upvotes: 0
Views: 104
Reputation: 32672
(I'm assuming here you're using an attachment field and not an OLE object field)
You can cancel showing the attachment dialog, by setting Cancel = True in the DoubleClick
event, like this:
Private Sub myAttachmentField_DblClick(Cancel As Integer)
Cancel = True
End Sub
Upvotes: 1