Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Location
    United Kingdom
    Posts
    56

    Unanswered: Difference between two date fields <3

    I have a form and on it I have two date fields: [OrderDate] and [ShippingDate].

    Does anyone know how to set it so that the user cannot enter a [ShippingDate] that's less than three days after the [OrderDate]?

    I think it might be via a BeforeUpdate event using an "If" statement, but cannot get anywhere with it.

    Many thanks,

    Rusty

  2. #2
    Join Date
    Sep 2004
    Posts
    161
    With Datediff("d", [OrderDate],[ShippingDate])<3

Posting Permissions

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