OMG. Your teaching this in a class not specifically about access???
It sounds like you should be focusing on the principles of a relational database, rather than intermediate level queries.
As for your question
int() returns the integer portion of a number
rnd() returns a random integer
So this is returning the integer part of 1000+(random#*8999)
Create a query. Add the table in question. Add the autonumber. Group by Max. In the next column, create a calculated row which is ["Name of autonumber Field Here"]+1
Thanks for your help. I don't propose to boast to know about Access inside out, and i don't let my students believe this either, however every one has to learn somewhere as i'm sure you all did. With me i've never needed to deliver databases to such a level before and as its the first time i'm teaching this i have come across some things that i don't know so i'm asking for assistance. And yours was warmly welcomed!!