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!

Report Yes/No instead of True/False for bool dataType field in Access

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") and display the resultSet, it's always "True"/"False". But I want it to be "Yes"/"No". I have already choosen 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
 
Use an If statement when displaying the results in the browser:

If recordsetname.yesnoField=True then
response.write "Yes"
Else
response.write "No"
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top