Skip to main content
Participant
April 23, 2006
질문

DB results field says "True", needs to be "Yes".

  • April 23, 2006
  • 1 답변
  • 273 조회
My insert record form (MS Access DB) has several checkboxes. In Access these fields are set up as "Yes/No" data type. For whatever reason, when the results come on on a web based form the text that comes out is "True/False" and not "Yes/No" (using a checkbox for the results would be the simple solution but isn't what the end-user wants, they want text and they want it to say "Yes" and "No", not "True" and "False".

How can I do this?

Thanks,

John
이 주제는 답변이 닫혔습니다.

1 답변

Inspiring
April 23, 2006
Assuming you are using ASP just write an IF statement like this

<%
if recordset.field.item("field").value = True then
response.write("Yes")
else
response.write("No")
End if
%>

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"johnruthroff" <webforumsuser@macromedia.com> wrote in message
news:e2gdlv$ift$1@forums.macromedia.com...
> My insert record form (MS Access DB) has several checkboxes. In Access
> these
> fields are set up as "Yes/No" data type. For whatever reason, when the
> results
> come on on a web based form the text that comes out is "True/False" and
> not
> "Yes/No" (using a checkbox for the results would be the simple solution
> but
> isn't what the end-user wants, they want text and they want it to say
> "Yes" and
> "No", not "True" and "False".
>
> How can I do this?
>
> Thanks,
>
> John
>