Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    That SQL will make a pretty good guess, but it's not perfect. Here's the operative quote -

    I also made the assumption that, if the dates are the same between different plantlocation records, then any one of them will do. If instead you want the record with the lowest or highest ID, then you can change "First(tP1.ID)" to "Min(tP1.ID)" or "Max(tP1.ID)", respectively.
    Having an accurate report is going to depend on straightening up the data entry situation.

    If you have what you need, please mark the thread "solved". Top of page, under "thread tools". If you come up with other questions later, it's better to start a new thread.

  2. #17
    asoe209 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    42

    Re: Query to show last records from and all date between records

    thanks so I just have to make that small change to the sql to take the largest record id to get be sure that it pulls the right record.

    what I will do is make changes to the sub form and just make it have one date rather than to dates. callining it MovementDate or some thing alone them line. I was using the db all day today and for this the 2 dates are not really needed. but im sure i will have more questions once I do that.

    thanks again its been a big help.

  3. #18
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    You're welcome. Please mark thread solved.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 10-12-2012, 11:00 AM
  2. Replies: 9
    Last Post: 08-06-2012, 07:32 AM
  3. Show records for each date
    By cooper in forum Forms
    Replies: 2
    Last Post: 08-11-2011, 08:58 AM
  4. Replies: 5
    Last Post: 06-13-2011, 01:30 PM
  5. Aslways show Current Date even in Old records
    By farhanahmed in forum Programming
    Replies: 3
    Last Post: 04-03-2011, 12:56 PM

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