|
 |
access_asp thread: Adding a loop Number to a request variable
Message #1 by "Andrew Matheson" <amatheso@y...> on Fri, 1 Feb 2002 09:13:16
|
|
Hi,
I am setting up a student tutorial database using asp and access.
Basically the page in question lets the user pick a subject from a list.
The system then goes to that subjects page and lists all users in that
tutorial.
The user sees a row for each student with check boxes representing each
week in the particular month...ie week1 to week 5. This is used to mark
tutorial attendances
I have created a loop to give each check box and student a unique id.. ie
for the first student in the list would be studentID + loop_No ..
("983248_1") for example.
Is there a way that in the next asp page i can filter through each line
from the previous page.
The process.asp looks like:
------
For i = 1 to request("loop_total") ' loops through each student
StudentID = Request("StudentID_&i") ' this line does not work..how do
' i do it?????????
------
Thanks for your help
Andrew
Message #2 by "Andrew Matheson" <amatheso@y...> on Sat, 2 Feb 2002 16:28:10
|
|
Hi,
I actually found the solution. if any one out there needs to do it, then
i sugguest you try this:.
For i = 1 to request("Loop_No")
Student_ID = Request("StudentID_"&i)
next
The code above adds a loop num to the StudentID on the origional page. On
the process asp page, the loop is called again to get the values for each
student.
cheers,
Andrew
|
|
 |