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

Default value in query

Status
Not open for further replies.

pelagic

Programmer
Nov 7, 2002
97
US
Hi All,
This is what I have

SELECT qryAFTER_FIX_2.AFTER_FIX
FROM qryDEPARTMENT LEFT JOIN qryAFTER_FIX_2 ON qryDEPARTMENT.SUB_CATAGORY = qryAFTER_FIX_2.SUB_CATAGORY;

The result is:
AFTER_FIX
11
2
1
1
5
1
9
122
N/A should go here
1
1
1
N/A should go here
1
7
1
N/A should go here
5
2
2
21

How do I place "N/A" in the blank spaces above.

Thanks,
regard
 
In your query you can setup the field with an IIF

IIF([qryAFTER_FIX_2.AFTER_FIX]="" OR IS NULL([qryAFTER_FIX_2.AFTER_FIX]),"N/A","qryAFTER_FIX_2.AFTER_FIX])

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top