I need your urgent help, please.
I have a field called itemDesc. This field will ask a question and the user will either answer a yes or a no but NOT both.
So far, this is allowing a yes and no to checked at the same time.
Please take a look at the function.
Thank you!!
Function Build_PersonGrid(strGrid)
Dim intCount, x
If request.form("Count") = "" then
'set default number of lines in the grid, in this case 5(!)
intCount = 0
else
'retrieve current amount of lines in the grid, increment by 1
intCount = Cint(request.form("Count") + 1)
end if
For x = 0 To intCount
strGrid = strGrid & "<tr>" & vbNewLine
strGrid = strGrid & "<td><input name=""txtItemDesc"&x&""" size=""70"" type=""text"" maxlength=""70"" value="""&request.form("txtItemDesc"&x)&"""></td>"& vbNewLine
strGrid = strGrid & "<td><input name=""txtYes"" TYPE=radio value="""&request.form("txtYes"&x)&"""></td>"& vbNewLine
strGrid = strGrid & "<td><input name=""txtNo"" TYPE=radio value="""&request.form("txtNo"&x)&"""></td>"& vbNewLine
strGrid = strGrid & "<td>"
Next
'set new Count, and action
strGrid = strGrid & "<tr><td>"
strGrid = strGrid & "<input type=""hidden"" name=""Count"" value="""&intCount&""">"&vbNewLine
strGrid = strGrid & "<input type=""submit"" name=""cmd_AddNewLine"" value=""Add"">"& vbNewLine
strGrid = strGrid & "<input type=""submit"" name=""cmd_Process"" value=""Process"">"& vbNewLine
strGrid = strGrid & "</tr></td>"
Build_PersonGrid = strGrid
End Function