Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change True/False to Yes/No

Status
Not open for further replies.

lsyhu

Programmer
Apr 27, 2002
12
US
Hi,

I have a yes/no data type in my Access database. When I use ASP to query it ("Select myFields from myTable"), it always report "True"/"False". But I want it to be "Yes"/"No". I hae already choose the format for this field to be "Yes/No" in access, but it did not work. Is there any way to get Yes/No instead of True/False?

Your quick response is greatly appreciated.

Lisa
 
Hello Lisa,

Try the following (or modify as you wish):

SELECT IIf([yesno]=-1,"YES","NO") AS expr
FROM
;


In this case table is called 'table' , the field with the checkbox is called 'yesno' and 'expr' is the new name for the output field for the query.

succes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top