I have a form/subform situation. The Main form is set up to accept input data for a calculation along with a textbox for the number of iterations.
When a cmdbutton is clicked I would like to display in the subform the calculated data based on the iteration number.
ie if iteration number is 5 then 5 lines of data would be generated.
When these data are deemed acceptable then I would like these to be written to the table that the subform is bound to.
My question is what is the best way to display and buffer these calculated multiple records? Should I use a:
1) temp table
2) or write directly to the bound table but have an undo capability if the records are not acceptable
3) some other clever idea?
would using an unbound subform as a continuous form work?
should my loop contain a line like
rstAdd.AddNew
rstAdd!field1=me.field1
rstadd.update
rst.movenext.
I've never used a form/subform situation where I am populating the many side of a one to many relationship.
Thanks for any suggestions or tips!
When a cmdbutton is clicked I would like to display in the subform the calculated data based on the iteration number.
ie if iteration number is 5 then 5 lines of data would be generated.
When these data are deemed acceptable then I would like these to be written to the table that the subform is bound to.
My question is what is the best way to display and buffer these calculated multiple records? Should I use a:
1) temp table
2) or write directly to the bound table but have an undo capability if the records are not acceptable
3) some other clever idea?
would using an unbound subform as a continuous form work?
should my loop contain a line like
rstAdd.AddNew
rstAdd!field1=me.field1
rstadd.update
rst.movenext.
I've never used a form/subform situation where I am populating the many side of a one to many relationship.
Thanks for any suggestions or tips!