Hamstad,
I am not quite sure what you are trying to achieve, but if I understood well
you are trying to append some new records in a table. These records should
have the same data as the current record in the form. You could try to run an
append query.
Example code:
'Retreive the data from the current record in the form
for each ctrl in me.controls
UpdateValue =UpdateValue & "," & ctrl.value
next ctrl
'Cut the leading , from the UpdateValue string
UpdateValue = mid(updatevalue,2,len(updatevalue))
for i = 1 to XXX '(number of times you would like to append the data to the
table
docmd.runSQL "INSERT INTO (Fld1, fld2) SELECT " & UpdateValue
next i
Only thing you have to be aware of is that the Fld1, fld2 etc. in your
append query should in the same order as the updatevalue. If you have all the
controls bound to the field you like to update you could put the following
code
'Retreive the data from the current record in the form
for each ctrl in me.controls
UpdateValue =UpdateValue & "," & ctrl.value
UpdateFlds = UpdateFld & "," ctrl.name
next ctrl
'Cut the leading , from the UpdateValue string
UpdateValue = mid(updatevalue,2,len(updatevalue))
Updatefld = mid(updatefld,2,len(updatefld))
for i = 1 to XXX '(number of times you would like to append the data to the
table
docmd.runSQL "INSERT INTO ("& updatefld & ") SELECT " & UpdateValue
next i