Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Posts
    228

    Unanswered: dmax with date criteria

    How would I use the dmax function to find the maximum value of a field where the date is from the year 2004.

    =DMax("[Freight]", "Orders", "[ShipDate] Like #2004#")

    Is this correct?

    I was sure on the rules regarding the "like" operator and dates

  2. #2
    Join Date
    Feb 2004
    Posts
    137
    Use:
    =DMax("[Freight]", "Orders", "Year([ShipDate])=2004")

  3. #3
    Join Date
    Sep 2003
    Posts
    228
    I was unaware you can use functions inside of criteria like that!
    Thank-you.

Posting Permissions

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