I needed to append new records to an existing table and have the primary key integer increment automatically. I couldn't find a single command to do it, so I resorted to this:
Set rstTemp = CurrentDb.OpenRecordset("SELECT LAST(ID) FROM tblTable")
avarData = rstTemp.GetRows(1)...