Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / February 2007

Tip: Looking for answers? Try searching our database.

Check value in controls before sending a form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lasse - 27 Feb 2007 09:09 GMT
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
Sue Mosher [MVP-Outlook] - 27 Feb 2007 14:31 GMT
Function Item_Send()
   If <conditions not met> THen
       Item_Send = False
   End If
End Function

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Hi,
> I have a form with some Textboxes with multi-lines.
[quoted text clipped - 7 lines]
>
> //Lasse
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.