TudorSmith
Programmer
Right, firstly I have a field in my SQL Server2000 table called "Commit"
Now I want to retrieve all the record sin the tabel and display them in a TABLE on an ASP form. For each rst value in the row, is a column for the "Commit" value (currently varChar storing "Yes" or "No" - but let me know if there is a better way).
I would like to have a Check box in my column and if the Commit value=Yes, then have the CheckBox show a tick.
What I have is:
I've played around with different "VALUE" but I'm suspicious that I am actually not setting the Checkbox to be "Checked" but instead, and storing a vlaue as if the CheckBox is a variable!
Anyone got any smashing ideas?![[glasses] [glasses] [glasses]](/data/assets/smilies/glasses.gif)
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
Now I want to retrieve all the record sin the tabel and display them in a TABLE on an ASP form. For each rst value in the row, is a column for the "Commit" value (currently varChar storing "Yes" or "No" - but let me know if there is a better way).
I would like to have a Check box in my column and if the Commit value=Yes, then have the CheckBox show a tick.
What I have is:
Code:
<%Dim rst
Set rst = objConn.Execute("tblSales")
Do Until rst.EOF
IF rst("Commit") = "YES" THEN%>
<INPUT TYPE="CheckBox" Value=1>
<%ELSE%>
<INPUT TYPE="CheckBox" Value=0>
<%END IF
rst.movenext
Loop
rst.close%>
I've played around with different "VALUE" but I'm suspicious that I am actually not setting the Checkbox to be "Checked" but instead, and storing a vlaue as if the CheckBox is a variable!
Anyone got any smashing ideas?
![[glasses] [glasses] [glasses]](/data/assets/smilies/glasses.gif)
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))