Sandy -
I'm getting it through code. Its very basic:
Set db = CurrentDb
Set table = db.OpenRecordset("T_Visits")
table.MoveLast
Anything I'm doing wrong? thanks for all your help.
Inasmuch as Access (Jet) tables are unordered, you can't rely on the last record
returned being the "last" record entered. If you have an incremental autonumber
or timestamp fields, you could sort your recordset on this field's value, and
*then* use MoveLast to retrieve the last record.
'********EXAMPLE START
Set db = CurrentDb
Set rs_table = db.OpenRecordset("SELECT * FROM T_Visits ORDER BY VisitID")
If rs_table.Recordcount > 0 Then
rs_table.MoveLast
End If
....
'Don't forget to clean up your object references
rs_table.Close
Set rs_table = Nothing
Set db = Nothing
'********EXAMPLE END
You would need to replace "VisitID" with the name of your incremental unique
record identifier field (e.g. autonumber or timestamp field). You could also set
the ORDER BY to "DESC" to make the "last" record the current record as soon as
the recordset is opened.