Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005

    Unanswered: Help with field validation

    I am creating a database using Access 2000 that requires validation on a date in a field (it is a short date e.g. 24/11/2005). I need to create a validation rule that only accepts Saturdays. I have an algorithm (see attachment) that can turn a date into a number, which relates to a specific day however I do not know how to implement this using access. Any algorithm tutorials, help or suggestions would be greatly appreciated.

    P.S. This is my first post so I am sorry if this tread is in the wrong set of topics
    Attached Thumbnails Attached Thumbnails zell's.gif  

  2. #2
    Join Date
    Mar 2003
    The Bottom of The Barrel
    Provided Answers: 1
    That's one way to do it. Here's another:

    If datepart("w", [yourDate]) = 6 Then
       MsgBox "Verification Failed"
    End If
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts