Hi
I've used a form wherby the user gets a long list of records, they can select any one to be true - click approve and it runs a sql update to update those records where true was chosen - this works ok
what i'd like this time is to keep the loop as above, but store the resulting ID's in a array (no need to do the sql update). That way i can pass the array values to another page, use the split function and pass the values into a listbox.
thanks alot !
kim
I've used a form wherby the user gets a long list of records, they can select any one to be true - click approve and it runs a sql update to update those records where true was chosen - this works ok
Code:
Dim iCount
iCount = request("Count")
Dim strDisplay, strID
Dim strSQL
Dim iLoop
For iLoop = 0 to iCount
strDisplay = Request(iLoop & ".Visible")
strID = Request(iLoop & ".ID")
strSQL = "UPDATE Table1 SET Visible = " & strDisplay & " WHERE ID = " & strID & " "
strSQL1 = "UPDATE Table1 SET Approved = 1 WHERE ID = " & strID & " "
objCon.Execute strSQL
objCon.Execute strSQL1
what i'd like this time is to keep the loop as above, but store the resulting ID's in a array (no need to do the sql update). That way i can pass the array values to another page, use the split function and pass the values into a listbox.
thanks alot !
kim