The reaseon why I ask this is because I can't get the below code to enter the first 'IF':
(the code reads in the values of a dynamic number of text fields from a form into a sting strTERMNO)
dim formcounter, J
formcounter = Request.Form("hdnrecords"

response.write("Number of fields: " & formcounter) 'WORKS OK
response.write("<BR>"
for J=1 to formcounter
response.write("Counter J is: " & J )
response.write("<BR>"
if J = formcounter then 'DOES NOT ENTER HERE
strTERMNO = strTERMNO & Request.Form("txttermno" & J)
else
strTERMNO = strTERMNO & Request.Form("txttermno" & J) & ", "
end if
next
I basically want it to use the 'else' for every time it reads txttermno , until the last one (where J = number of fields) e.g if it was teh second iteration and number ofr txttermno's was 2 then it would add it to the string, but not append another comma. Unfortunately it just uses the else every time, and a comma is always at the end.
?