
Originally Posted by
rpeare
To itsme.. I adapted some code I found elsewhere and didn't spend a whole lot of time examining it, I got a sample working and that was all I was interested in

Oh, I thought you mentioned that the table was not populating with an actual random number. Just for the fun of it, I created a little snippit for a random function.
Code:
Dim iRecNum As Integer
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("Table1", dbOpenDynaset)
Dim max As Long
max = 40
Dim i As Integer
Dim intCount As Integer
intCount = 50
For i = 0 To intCount - 1
Randomize
iRecNum = (max * Rnd) + 1
rs.AddNew
rs![RandomNum] = iRecNum
rs.Update
Next i
rs.Close
Set rs = Nothing