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 / March 2008

Tip: Looking for answers? Try searching our database.

Date Field Validation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 28 Mar 2008 21:45 GMT
A co-worker has date fields on a message form created in Outlook 2003 for
employees to enter hours.  The date must be a Sunday, and it should not be
null.  (Weekday( [Wk 1 Ending Date] ) =1)  AND ([Wk 1 Ending Date] <>"")
don't seem to work.  Any suggestions would be greatly appreciated.  Thanks.

Chris
Sue Mosher [MVP-Outlook] - 30 Mar 2008 02:27 GMT
If you tested each validation expression separately, you'd find out that the first expression works fine and that the problem is with the second one. The field must be <> "None" not "". Not intuitive, given that it's a date field, is it?

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

>A co-worker has date fields on a message form created in Outlook 2003 for
> employees to enter hours.  The date must be a Sunday, and it should not be
> null.  (Weekday( [Wk 1 Ending Date] ) =1)  AND ([Wk 1 Ending Date] <>"")
> don't seem to work.  Any suggestions would be greatly appreciated.  Thanks.
>
> Chris
Chris - 30 Mar 2008 19:00 GMT
Thanks, Sue.  No, it wasn't intuitive, and we never would have figured it
out.  Thanks again for the great info.

> If you tested each validation expression separately, you'd find out that the first expression works fine and that the problem is with the second one. The field must be <> "None" not "". Not intuitive, given that it's a date field, is it?
>
[quoted text clipped - 4 lines]
> >
> > Chris

Rate this thread:






 
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.