Check value in controls before sending a form

  • Thread starter Thread starter Lasse
  • Start date Start date
L

Lasse

Hi,
I have a form with some Textboxes with multi-lines.
Before they send the form, I will count rows in each textbox. If they are
different i want to stop the Send command, and prompt with a msgbox.

Is it possible to stop the send command. I have tryed this:
sub Item_Send(Cancel as Boolean)
but it doesn't work . Does anyone have an idea how I can stop the send
Command or maybe disable the send button .

//Lasse
 
Function Item_Send()
If <conditions not met> THen
Item_Send = False
End If
End Function

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top