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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Display the value as Yes/No not -1/0

Status
Not open for further replies.

anon1971

Programmer
Aug 9, 2008
88
US
Here is the statement I am stomped pn how to get the NotesD.Complete to show the results as yes and no rather than -1 and 0. Any help

SELECT DISTINCTROW NotesD.User, NotesD.Subject, NotesD.NoteDate, NotesD.FollowUp, NotesD.Complete, NotesD.NoteID
FROM NotesD WHERE (((NotesD.ProjectID)=[forms]![sProjects]![ProjectID]))
ORDER BY NotesD.NoteDate DESC;
 


Hi,
Code:
, IIF(NotesD.Complete=0,"NO,"YES")

Skip,
[sub]
[glasses]Just traded in my old subtlety...
[b]for a NUANCE![/b][tongue][/sub]
 
If the results are displayed in a form or report, you should just set the format property in the text box. Messing around with the values in the query sometimes limit the functionality later.

Duane
Hook'D on Access
MS Access MVP
 
Don't want to change the value just change how it is displayed in the unbound box. Skip that code gives and error.
 


Sorry, missed a QUOTE
Code:
IIF(NotesD.Complete=0,"NO","YES")

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks skip here is the finished product for future needs:

SELECT DISTINCTROW NotesD.User, NotesD.Subject, NotesD.NoteDate, NotesD.FollowUp, IIF(NotesD.Complete=0,"NO","YES") As Complete, NotesD.NoteID
FROM NotesD WHERE (((NotesD.ProjectID)=[forms]![sProjects]![ProjectID]))
ORDER BY NotesD.NoteDate DESC;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top