E
Ed Richter
I'm trying to add some variables together as shown below, but not getting the results I'm looking for. The problem appears to be that it's taking the variables from the form and treating them as text rather than numbers, therefore not able to add them. Instead it's just concatenating the variables together. What do I need to do to convert the variables such as Q1_R1_value to a variable rather than text? Do I just need to declare them in a Dim statement or is more needed?
Q1_R1_value = Request.Form("Q1_R1")
Q2_R1_value = Request.Form("Q2_R1")
Q3_R1_value = Request.Form("Q3_R1")
R1_sum = Q1_R1_value
R1_sum = R1_sum + Q2_R1_value
R1_sum = R1_sum + Q3_R1_value
Q1_R1_value = Request.Form("Q1_R1")
Q2_R1_value = Request.Form("Q2_R1")
Q3_R1_value = Request.Form("Q3_R1")
R1_sum = Q1_R1_value
R1_sum = R1_sum + Q2_R1_value
R1_sum = R1_sum + Q3_R1_value