well in a relational database there is no next/last record, since it all depends on what column you sort bby.
you could use dmax (see faqs/help) that would give you highest number in a given field, you can use dmax +1 to automatically assign the current record the next number in sequence
You can use a recordset and sort decending based on record number and return the first record.
But why not use an autonumber data type as the record number? This way you will not have to reference the previous record.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.