Since the Access autonumber could be set to a random generation, using the
"largest" autonumber is not a guarantee of finding the "last".
As Karl points out, Access and you don't necessarily have the same
definition of "last"... what's YOUR definition?
Regards
Jeff Boyce
Microsoft Access MVP
--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.
Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.
You can thank the FTC of the USA for making this disclaimer
possible/necessary.