Check value in controls before sending a form

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
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top