Hi, I'm not sure how to limit the digits to 6 using the autonumber but there is a workaround using a new field, as follows :
Create a new field in your table for the password, called say "PW6", Long Integer, format 000000, 0 dp.
Create a new query, add the employee table, add the "PW6" field, Query -> Update Query, in the "Update To" field enter something like this :
IIf(Abs([rand])<100000,Abs([rand]),Right(Abs([rand]),6))
and set the criteria to : Is Null.
Save and Run.
This will populate the new field "PW6" with the last 6 digits of the random number. Whilst there is a low probability that two employess will have the same "PW6" value, it is possible. You could also use "Left" instead of "Right" or even a "Mid" function. You might also want to use "Left" for even numbers and "Right" for odd, or vice versa - really you can do anything you like.
Please note that I have used the variable name "rand" - you may want to use your own variable name.
I'm not sure what the maximum value of the random number is but if you knew it then you could express the absolute value of the random number as a proportion of the maximum possible random nubmer, multiply that proportion by 900k, truncate the number and then add 100k to give you a number with 6 digits.
HTH, Andrew.