G
Greg Smith
Here is the code:
Function Item_Send()
If Item.userproperties("To") = "" Then
MsgBox "You Must Select A Recipient Prior
To Selecting The Email Button." &
vbLf,vbInformation , "WARNING: NO RECIPIENT SELECTED"
Stop Function
End If
If Len(Item.userproperties("Subject").value) < 16
Then
Msgbox "You Must Complete The Form Prior
To Selecting The Email Button.", vbInformation , "WARNING:
BLANK SUBJECT"
Stop Function
End If
End Function
==========================================================
How do I get it to cancel the function is the criteria is
not met? I do not want it to send...
Function Item_Send()
If Item.userproperties("To") = "" Then
MsgBox "You Must Select A Recipient Prior
To Selecting The Email Button." &
vbLf,vbInformation , "WARNING: NO RECIPIENT SELECTED"
Stop Function
End If
If Len(Item.userproperties("Subject").value) < 16
Then
Msgbox "You Must Complete The Form Prior
To Selecting The Email Button.", vbInformation , "WARNING:
BLANK SUBJECT"
Stop Function
End If
End Function
==========================================================
How do I get it to cancel the function is the criteria is
not met? I do not want it to send...