Question
Insert multiple records in database from one form
I'm developing a tracking application - it assigns "taskings"
to divisions and people.
I need a way to take a form and replicate all the data into seperate records in our database. I know insert will only put one record in at a time, so it has to be looped. I'll route the records into to a staging area so that the data can be modified for the individual divisions - which I need no help with.
I want the user to be able to define how many records they will make, like a textfield saying I want this done 4 times. How would I write this loop - I'm assuming I should write an index loop over a query, but I'm thinking CF won't like this. Any suggestions?
I need a way to take a form and replicate all the data into seperate records in our database. I know insert will only put one record in at a time, so it has to be looped. I'll route the records into to a staging area so that the data can be modified for the individual divisions - which I need no help with.
I want the user to be able to define how many records they will make, like a textfield saying I want this done 4 times. How would I write this loop - I'm assuming I should write an index loop over a query, but I'm thinking CF won't like this. Any suggestions?