Re: Last record search not working
- From: Dave Couch <DaveCouch@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 18 Nov 2008 17:01:00 -0800
I guess I didn't see the note in the help file. I have other queries that
"Last" seems to be working on. Oh, well, "Max" seems to work just fine, so I
will go with that. Thank you.
"Douglas J. Steele" wrote:
Do you have an ORDER BY clause in your query? Without it, Last will.
essentially return a random record. As it says in the Help file "Because
records are usually returned in no particular order (unless the query
includes an ORDER BY clause), the records returned by these functions will
be arbitrary."
It sounds like you should be using Max instead of Last.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Dave Couch" <DaveCouch@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:423A7E81-23E5-4ECC-84D4-6D8F0BD2FF2A@xxxxxxxxxxxxxxxx
Access 2003. I have a table with 1831 records with a last key index value
(ProposalID) of 1831. I have set up a query to select the last record in
the
table. I am using the "Last" selection in the Total row. When I run the
query, it will only show record 1816, not the last record. I have tried
recreating the query with no luck. All of the data in the fields looks
correct and the ID field is an "autonumber" field. I have used this
procedure on other tables with success. I can't figure out what is wrong
with this table. I did a "compact and repair" on the database. Any ideas
out there?
Dave
- References:
- Last record search not working
- From: Dave Couch
- Re: Last record search not working
- From: Douglas J. Steele
- Last record search not working
- Prev by Date: Re: Last record search not working
- Next by Date: Re: calculating Percentages
- Previous by thread: Re: Last record search not working
- Next by thread: Re: Last record search not working
- Index(es):
Relevant Pages
|