Hello Darren
The HreadSeekLast will return the last ID of the nominated index so you have to nominate which index it should use. The AutoID feature is not a record number it is a generated number and may be different from the last physical record number.
If you have an index on surname then HreadSeekLast(MyFile,SurnameIndex) will return the alphabetic last name "ZOOLANDER" - maybe
So when you want the last AutoID number used then you must specify its index name
HreadSeekLast(MyFile,AutoIDKeyIndex)
Regards
Al