Results 1 to 4 of 4
  1. #1
    akino25 is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2013
    Posts
    10

    About "first" and "last" criteria when adding the operation

    Hi, I'm very confused with this "first" and "last" criteria
    I can easily understand for "max" "min" "sum" etc ... but not the "first" and "last"

    I import monthly data for the year 2013
    and for each month I import, it will have a record showing 201301 (for january 2013), 201302 (for february 2013) etc... until today which is 201312

    I import them in order that is: 201301 first till the last one which is 201312

    now is the Criteria "first" give me the date at which it is First entered in the table or just the first that he see in the table ? ( can putting them in order either a->z or z<-a affect this criteria?) or what if I put import them not in order but randomly like?

    when I used last it didnt give me 201312 but 201311... does anyone have an explanation to this ?

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,627
    Neither do I.

    And apparently the order of import is ignored as well.

    Have you run Compact & Repair? Does that alter the results.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I only use FIRST/LAST when I want to return any record, but don't really care which one comes back.
    Otherwise I use MIN/MAX.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-14-2012, 04:47 PM
  2. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  3. Replies: 11
    Last Post: 03-29-2012, 02:32 PM
  4. Replies: 16
    Last Post: 07-22-2011, 09:23 AM

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