I'm trying to add multiple rows to my table at once. I'm not really sure how but here's what I did so far.
The fields are Qnty, User, Desc
In the form to enter the info I have 10 lines and named the inputs "field1-10", as in Qnty1, Qnty2, User1, User2, etc.
On my insert asp page I want to possibly do a loop for the fields, something like
i = 1
do while i < 11
sql(i) = "INSERT INTO SUB(QNTY,USER,DESC)"
sql(i) = sql(i) & "VALUES
('" & Request.Form("QNTY(i)"
& "',"
.......
i = i + 1
loop
Thanks.
The fields are Qnty, User, Desc
In the form to enter the info I have 10 lines and named the inputs "field1-10", as in Qnty1, Qnty2, User1, User2, etc.
On my insert asp page I want to possibly do a loop for the fields, something like
i = 1
do while i < 11
sql(i) = "INSERT INTO SUB(QNTY,USER,DESC)"
sql(i) = sql(i) & "VALUES
('" & Request.Form("QNTY(i)"
.......
i = i + 1
loop
Thanks.