bossawwm
Posts: 4
|
| Posted: 03/31/2006, 2:30 PM |
|
Hi there,
for one week I have been trying to do transfer the value of apl_Time_Target_q from the form apl_q1
to
apl_Time_Target in the form apl_a1
both are on page q.asp
You can take at the look at the page here"
http://www.computerhelpsos.com/apl/q.asp?Index=1
The logic explained:
An applicant answers a question which comes from the table apl_q and has the filed question, question nr and how many miliseconds the applicant has to answer the questions, before it redirects to the next question.
All the answers are saved in the table apl_a. It records the answer, time started, time taken, question nr and applicant number.
So this is the logic what I am trying to achieve.
Thank you in advance for helping me out!
Best regards Andy
_________________
Best regards
Andy
http://www.computerhelpsos.com |
 |
 |
Andreas Barth
|
| Posted: 03/31/2006, 8:02 PM |
|
The solution, took me a week to figure this out.
1. Declare a variable in common.asp, in my case TimeTemp (Dim TimeTemp)
2. Fill the variable with data from the first form - table with TimeTemp = apl_Time_Target_q.Value
3. In the second form/table on the same page create a before show code called apl_a.apl_Time_Target.Value = TimeTemp where apl_a is the form name.
4. The value of TimeTemp will show up whereever you put under default value TimeTemp.
Really usefull was me to use the print command in order to see if TimeTemp was populated, so whenever you do something you can put print TimeTemp to see how the value changes. You have to publish the page first.
|
|
|
 |
bossawwm
Posts: 4
|
| Posted: 03/31/2006, 8:41 PM |
|
I wrote Nr. 4 a little bit wrong. Any control mentioned in Nr.3 apl_a.apl_Time_Target.Value take on the value of timetemp
_________________
Best regards
Andy
http://www.computerhelpsos.com |
 |
 |
|