Query

T

Test

Hello!
I'm new to Access and what I'm about to ask may be very
simple and basic.
I have a table (AA) with an autonumber column (aa).I need
a query to get the last row of table AA, or at least the
value of column aa of the last row of AA.
Any help will be appreciated.
Thanks in advance!!
 
T

Tim Ferguson

I have a table (AA) with an autonumber column (aa).I need
a query to get the last row of table AA, or at least the
value of column aa of the last row of AA.

select max(aa) as LastValue
from AA


assuming that it's an incrementing autonumber. If it's a random one, then
you'll need a sorting field like a datestamp to find the maximum of.

HTH


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top