newkid
11-11-2004, 09:21 PM
I have used code Similar to this before, but not inside a form (I numbered lines just to make it a bit easer to explain) every thing works except line # 11.
What I'm trying to do is take a True/False field from an AcessDB and display as Sent/Not Sent vice True/False or a check box, I dont want the field to be updated just displayed (like info in lines 3,4,5) and need sent/not sent instead of true/false.
Line #14 which displays True/False works fine
Line #13 which displays a check box works fine
Thanks for any help in advance
J.C.
1 <FORM method="POST" action="<%=MM_editAction%>" name="form1">
2 <DIV>
3 <STRONG>Call Date:</STRONG> <%=(rsProc.Fields.Item("CallDate").Value)%>
4 <STRONG>Call Time:</STRONG> <%=(rsProc.Fields.Item("CallTime").Value)%>
5 <STRONG>CCS Init:</STRONG> <%=(rsProc.Fields.Item("AnsweringService").Value)%>
6 </DIV>
7 <BR>
8 <DIV>
9 <STRONG>Info Sent:</STRONG>
10
11 <%If (CStr((rsProc.Fields.Item("InfoSent").Value)) = CStr("True")) Then Response.Write(" Sent") : Response.Write(" Not Yet")%>
12
13 <INPUT <%If (CStr((rsProc.Fields.Item("InfoSent").Value)) = CStr("True")) Then Response.Write("checked") : Response.Write("")%> name="InfoSent" type="checkbox" id="InfoSent" value="checkbox">
14 <%=(rsProc.Fields.Item("InfoSent").Value)%>
15
13
14 <STRONG>Date Sent:</STRONG>
15 <INPUT name="SentDate" type="text" id="SentDate" value="<%= DoDateTime((rsProc.Fields.Item("SentDate").Value), 2, 1033) %>">
16 </DIV>
17 </form>
What I'm trying to do is take a True/False field from an AcessDB and display as Sent/Not Sent vice True/False or a check box, I dont want the field to be updated just displayed (like info in lines 3,4,5) and need sent/not sent instead of true/false.
Line #14 which displays True/False works fine
Line #13 which displays a check box works fine
Thanks for any help in advance
J.C.
1 <FORM method="POST" action="<%=MM_editAction%>" name="form1">
2 <DIV>
3 <STRONG>Call Date:</STRONG> <%=(rsProc.Fields.Item("CallDate").Value)%>
4 <STRONG>Call Time:</STRONG> <%=(rsProc.Fields.Item("CallTime").Value)%>
5 <STRONG>CCS Init:</STRONG> <%=(rsProc.Fields.Item("AnsweringService").Value)%>
6 </DIV>
7 <BR>
8 <DIV>
9 <STRONG>Info Sent:</STRONG>
10
11 <%If (CStr((rsProc.Fields.Item("InfoSent").Value)) = CStr("True")) Then Response.Write(" Sent") : Response.Write(" Not Yet")%>
12
13 <INPUT <%If (CStr((rsProc.Fields.Item("InfoSent").Value)) = CStr("True")) Then Response.Write("checked") : Response.Write("")%> name="InfoSent" type="checkbox" id="InfoSent" value="checkbox">
14 <%=(rsProc.Fields.Item("InfoSent").Value)%>
15
13
14 <STRONG>Date Sent:</STRONG>
15 <INPUT name="SentDate" type="text" id="SentDate" value="<%= DoDateTime((rsProc.Fields.Item("SentDate").Value), 2, 1033) %>">
16 </DIV>
17 </form>