Results 1 to 5 of 5
  1. #1
    abusaif is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2012
    Location
    Earth
    Posts
    39

    DLast not working


    Dear All,

    I have total of 3730 records in my table, where as my dlast function shows 3713 as the last record. Can any one help?

    I would be grateful.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Try DMax() instead.
    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.

  3. #3
    abusaif is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2012
    Location
    Earth
    Posts
    39
    Yes it worked, but I am surprised why the Dlast function stopped working properly, as it was working previously. Can you guide on it, dear June?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Records do not have a set order, they are just 'bits in a bucket'. Cannot depend on the record order being the order entered into table. DFirst and DLast will not always produce the desired output, as you experienced. Don't think I have ever used them. I have no idea what use they can serve.
    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.

  5. #5
    abusaif is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Nov 2012
    Location
    Earth
    Posts
    39
    Got it & thanks a ton for such favor.

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

Similar Threads

  1. DLast not getting last record
    By Ron99 in forum Access
    Replies: 13
    Last Post: 06-21-2017, 05:25 AM
  2. DLast
    By alyon in forum Access
    Replies: 4
    Last Post: 12-21-2012, 02:01 PM
  3. Replies: 2
    Last Post: 11-08-2012, 05:22 AM
  4. Replies: 0
    Last Post: 03-14-2012, 07:23 AM
  5. vba Dlast for each page!
    By Ivanho in forum Reports
    Replies: 0
    Last Post: 11-23-2011, 04:27 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