You could just use <cfloop> to execute a <cfquery> tag several times to insert several rows of the same data. I'm guessing your problem isn't this simple so if you could give me an idea of what data you're looking to insert several times and how it's formatted, I could give you a better answer.
One problem I see is that #rec# will contain the largest value of the field "nr". If this corresponds to record numbers, you are basicly setting #rec# to the number of records in your query. In your <cfloop>, you start from #rec# and go to #form.RecordCount# which I assume will be the same number. I'm not sure what you're coding but I think this might work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.