Page 3 of 3 FirstFirst 123
Results 31 to 34 of 34
  1. #31
    dgaletar is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2013
    Location
    Washington, DC
    Posts
    85
    OK, so I lied! Sue me. lol There was really little chance that that last question was really going to be my "last" one on this topic!!! It's going too well.

    The query worked perfectly, as expected!

    The problem now is that each vehicle has MANY services, and therefore the report is returning all of them that are more than 30+ days old. I just need to show FROM the last service date to today if it's past due.



    Here is an example:

    • truck #1 was serviced on 1/1/12, 6/1/12, and 1/1/13. Therefore, as of 2/14/13, it is current.
    • truck #2 was serviced on 1/1/12 and 6/1/12 only.
    • Therefore, as of 2/14/2013, truck #2 is over 90 days past due, and should thus appear on the report.

      As of right now on my report, ALL 5 services are showing up. What I'm looking for is ONLY truck #2, (with it's last service date of 6/1/12) to show up.


    Does this make sense???

    (BTW, I learned last time to let everyone know that I also have this question going in another Access Forum, here. Feel free to jump in on either one. Thanks!)

  2. #32
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    You can use this technique:

    http://www.baldyweb.com/LastValue.htm

    or perhaps DMax() to get the last service.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #33
    dgaletar is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2013
    Location
    Washington, DC
    Posts
    85
    OK, now you are just freakin me out, Paul!!! Did you seriously just write that article for me???

    Either way, you are the best! Thanks!!!

  4. #34
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    LOL! Happy to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Past Due (30, 60, or 90)
    By claysea in forum Database Design
    Replies: 8
    Last Post: 02-11-2013, 03:22 PM
  2. Commiting changes in past records
    By spleewars in forum Programming
    Replies: 3
    Last Post: 04-17-2012, 08:31 AM
  3. Autocop and past when 2 values are the same
    By FuzzFuzz in forum Access
    Replies: 1
    Last Post: 03-07-2012, 10:52 PM
  4. Reviews Past Due
    By Luke in forum Access
    Replies: 5
    Last Post: 07-19-2011, 10:51 AM
  5. Past Due Query
    By sai_rlaf in forum Queries
    Replies: 4
    Last Post: 07-06-2011, 01:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums