Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 17th, 2004, 07:05 AM
Registered User
 
Join Date: Jun 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Yes/No in DB showing True/False in ASP query

I have managed to use ASP to query my database. Everything works fine.

Except, when I use the Response.Write code to show the value within a Yes/No field within my database, when the reponse is shown with my webpage it is shown as Ture or False. How come.

Can you help??

Thanks in advance

Steve
 
Old June 17th, 2004, 07:59 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in Ms Access Yes and No field contains only one of two values True or False.
 
Old June 17th, 2004, 10:36 AM
Authorized User
 
Join Date: Oct 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could do a conditional statement that said, in effect(Forgive my lack of proper syntax):

IF NamedField.value ="False" Then
Response.Write "NO"
end if






Similar Threads
Thread Thread Starter Forum Replies Last Post
Is 9:00 > 08:30 true or false? cJeffreywang ASP.NET 2.0 Basics 5 February 3rd, 2008 12:16 AM
boolean value shows true and false in the datagrid debjanib ASP.NET 2.0 Basics 2 March 23rd, 2007 08:38 AM
ASP ADO Query not showing Polish Letters karoljoc Classic ASP Professional 0 September 12th, 2006 07:07 AM
XSLT - test the value is true or false haixia XSLT 1 August 21st, 2006 01:38 PM
Boolean True/False to Yes/No peterasimpson VB How-To 2 February 6th, 2006 07:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.