I created an update code that would update a boolean data type ( access db true/false) data type.
So far, this pair of scripts work:
on edit.asp:
on update.asp:
This works well.
However, On the edit page, it dispays:
Show = True (or show = False) depending on the situation.
The client has decided that rather than see True or False, they just want to see a checkbox so they if they box is checked meaning True and they want to change the value to False, all they need to do is uncheck the box, click update and the database will be updated.
So far, when I uncheck a checked box and click update, I get an error.
Below is the code I am playing with.
Can I ask for your assistance, please?
Thanks in advance
So far, this pair of scripts work:
on edit.asp:
Code:
<tr>
<td>
<b><font color="ffffff">Printed: </font></b></td><td><input type="text" size="60" name="show" value="<%=RS("show")%>"></td>
</tr>
on update.asp:
Code:
Set RS = DataConnection.execute("UPDATE shows SET show= '" & fshow& "' where id =" ID)
This works well.
However, On the edit page, it dispays:
Show = True (or show = False) depending on the situation.
The client has decided that rather than see True or False, they just want to see a checkbox so they if they box is checked meaning True and they want to change the value to False, all they need to do is uncheck the box, click update and the database will be updated.
So far, when I uncheck a checked box and click update, I get an error.
Below is the code I am playing with.
Can I ask for your assistance, please?
Thanks in advance
Code:
<%
IF trim(rs("show")) = "True" then
Response.Write("<INPUT NAME='fshow' CHECKED TYPE=checkbox VALUE=" & rs("show") & " checked>
ELSE
Response.Write("<INPUT NAME='fshow' CHECKED TYPE=checkbox VALUE=" & rs("show") & " >
END IF
%>