Hi Leeus,
What version of Access are you using? I believe that Access 97 defaults to DAO without specifying it. I am using Access 2000. If you are using Access 97, just omit DAO. It should still work. When you type "Dim Db as d" in the VB editor, does DAO show as an option? If not, your version must not support it. Try this:
Dim Db as Database
Dim recset as Recordset
Dim numRecs as Integer
Dim i as Integer
Set Db = CurrentDb
Set recset = Db.OpenRecordset("table name", dbOpenDynaset)
numRecs = LoopTimes.Value
For i = 1 to numRecs
recset.AddNew
recset.Update
Next i
dz