Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    robsworld78 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Posts
    181
    Just so you know, this issues popped up again, as more data went it it stopped giving me the last bin number and this time it was really only pulling the highest bin number instead of the last and I was using the "Last" on the Totals Row in the query.



    I went back to the DLast in the criteria with no totals and that works! This turned out very useful after all.

  2. #17
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Just some info for you robsworld -

    The data in Tables are not stored in any particular order by Access.

    Last() is unreliable (and is documented as such by Microsoft and other Access pros). It will actually only give you a random record, not the last one entered. If you want the actual last record entered you need to use DLAST as has been pointed out. But the key is using the proper criteria. You can also use a query that has the criteria and then using DLast on it will yield the one record that was added last from that set of records.

  3. #18
    robsworld78 is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Posts
    181
    Thanks Bob, I thought they were defaulted to the autonumber field but I guess it seems that way because its always the first field as it works out.

    Good to know about the LAST in totals being wrong, I'll avoid in all situations.

    Is it only Last that doesn't work properly or does FIRST have the same issue?

    I have a LAST somewhere else on one on my queries, I'll have to find and change it.

    Have you heard anything about what I mentioned, the "D" functions don't work on the executable file type?

  4. #19
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Last or First can be okay as long as you don't require something specific. It can also be helpful in a crosstab instead of aggregating you select first or last.

    I've never heard anything about not using the Domain Aggregate Functions when using the runtime. By the way, don't use "executable" because an Access database is NEVER an executable. There is no way to turn it into an executable file. There is at least one website out there that claims to be able to do so, but it turns out that it isn't really such. There is a bunch of "trick" stuff going on to make it SEEM like it is. But it isn't.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-08-2011, 07:30 AM
  2. Show only current record in report from form/subform
    By stelioshania in forum Reports
    Replies: 0
    Last Post: 03-02-2011, 02:19 PM
  3. Text Box to show specific record
    By chu3w in forum Forms
    Replies: 1
    Last Post: 04-01-2010, 12:23 PM
  4. Replies: 4
    Last Post: 10-29-2008, 11:53 AM
  5. Show a new image per record in a form
    By Bert Colourama in forum Forms
    Replies: 0
    Last Post: 09-25-2008, 05:22 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