Date Field Validation

C

Chris

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
 
S

Sue Mosher [MVP-Outlook]

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?
 
C

Chris

Thanks, Sue. No, it wasn't intuitive, and we never would have figured it
out. Thanks again for the great info.

Sue Mosher said:
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?

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


Chris said:
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
 

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