Quote:
Originally posted by speng
Can this be done?
|
Yes, this can be done and it's very simple,
all you need to do is a loop inside form that
gets all the ID's and list them into text boxes
(if you like it to look like Excel or Access
spreadsheet you need to change the look/style of the text box)
for each text box you give the same name + the Var from the loop
for example :
For I = 0 To Rs.RecordCount
response.write "<Input Type=Text Name='ID"&I&"' Value='"Rs("ID")"'>
Loop
now you got all the ID's in text boxes, when submit you make
the same query that you made on the form page and run a loop
to generate a SQL query to Update/Insert the values
SQL = "Update . . . . ."
For I = 0 To Rs.RecordCount
SQL = SQL & Request.Form("ID"&I)
Loop
NOTE : you need to make your own SQL query, this is just the concept!
you can use this as a reference :
http://www.aspin.com
http://www.asphelp.com
http://4guysfromrolla.aspin.com
http://www.haneng.com/
And my favorite -
http://www.devguru.com