Null records, IFF statement?

joe31709

Registered User.
Local time
Today, 16:16
Joined
May 12, 2003
Messages
54
I have a query I use to run a report. In the report there is a field for mission/reimbursable work. now if the field is blank it is assumed it is mission. I want to know if there is a way to put in a statement such as a Iff statement where it is null will say Mission?

Joe
 
neileg said:
Use Nz() e.g.

Nz([YourField],"Mission")


Where would you put that at? in the report or query?

Joe
 
Either/Or - stick it in the query
 
joe31709 said:
In the critera field ? sorry but I am not able to think today....

No, as a new calculated field:

NewField: Nz([YourField],"Mission")
 
In a new calculated field, e.g.

NewField:Nz([YourField],"Mission")

Then include [NewField] in your report instead of [YourField]
 
Just FYI. From the Help File
You can use the Nz function to return zero, a zero-length string (" "), or another specified value when a Variant is Null. For example, you can use this function to convert a Null value to another value and prevent it from propagating through an expression.

Syntax

Nz(variant[, valueifnull])
 
neileg said:
In a new calculated field, e.g.

NewField:Nz([YourField],"Mission")

Then include [NewField] in your report instead of [YourField]

Thank yall.

That works great

Joe
 

Users who are viewing this thread

Back
Top Bottom