TTLastID()

TTLastID() has the same functionality as TTLast() but returns the ID of the last result.