You can't get the autonumber from a record as you're inserting it via SQL, so you can only obtain it afterwards.
You could do a DMax lookup on the table for the autonumber, but that would only work if the autonumbers are set to increment, not if they're randomly assigned.
If your autonumber is set to random, then you could do it using a kludge. You can copy the existing autonums to a temp table, insert your record, then do a query to find out the newest autonum.