Why is my Access database becoming HUGE!!!
I'm running this code to allocate a random number to a field called [rnd100] to each row of a table containing around 350k rows.
Problem is, the code runs, but rapidly increases the size of the database to well over 1Gb (from under 100Mb).
What is going wrong?
If I removed the row that allocates the random number, it runs fine. If I replace this with a line to simply update each row to a "1", the database still inflates.
Public Sub random100()
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("SELECT [rnd100] FROM [tblDATA] ", dbOpenDynaset)
rst.MoveFirst
While rst.EOF = False
rst.Edit
rst!rnd100 = Int((100 * Rnd) + 1)
rst.Update
rst.MoveNext
Wend
rst.Close
Set rst = Nothing
End Sub

