U
Urs Ruefenacht
I launch the Insert File Dialog for adding attachments with the
following code:
Set objInsp = Item.GetInspector
Set colCB = objInsp.CommandBars
Set objCBB = colCB.FindControl(, 1079)
If Not objCBB Is Nothing Then
objCBB.Execute
End If
Set objCBB = Nothing
Set colCB = Nothing
Set objInsp = Nothing
Now I like to check 2 things:
1. Has the attachment a permitted type (ex. ".txt")
2. Is there already an attachment to the form attached
In both cases, a message box should pop up and the file may not be attached.
thx in advance - cheers
oers
following code:
Set objInsp = Item.GetInspector
Set colCB = objInsp.CommandBars
Set objCBB = colCB.FindControl(, 1079)
If Not objCBB Is Nothing Then
objCBB.Execute
End If
Set objCBB = Nothing
Set colCB = Nothing
Set objInsp = Nothing
Now I like to check 2 things:
1. Has the attachment a permitted type (ex. ".txt")
2. Is there already an attachment to the form attached
In both cases, a message box should pop up and the file may not be attached.
thx in advance - cheers
oers