Expression

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a field called [Verbal Report] that may or may not have date entries.

What expression do I need so that I can create a field in a query that can
be used to show a 1 when this [Verbal Report] is < [Due Date]?

Since [Verbal Report] is left blank 95% of the time I have trouble in trying
to compare against other fields and I get a 1 showing when there is no date
entry for [Verbal Report]

This must be something really simple that I can not think ok.

Brian
 
I have a field called [Verbal Report] that may or may not have date entries.

What expression do I need so that I can create a field in a query that can
be used to show a 1 when this [Verbal Report] is < [Due Date]?

Since [Verbal Report] is left blank 95% of the time I have trouble in trying
to compare against other fields and I get a 1 showing when there is no date
entry for [Verbal Report]

This must be something really simple that I can not think ok.

Brian

Use a criterion

< [Due Date] OR IS NULL


or a calculated field:

IIF(NZ([Verbal Report], [Due Date]) < [Due Date], 1, 0)

John W. Vinson[MVP]
 
bdehning said:
I have a field called [Verbal Report] that may or may not have date
entries.

What expression do I need so that I can create a field in a query
that can be used to show a 1 when this [Verbal Report] is < [Due
Date]?

Since [Verbal Report] is left blank 95% of the time I have trouble in
trying to compare against other fields and I get a 1 showing when
there is no date entry for [Verbal Report]

This must be something really simple that I can not think ok.

Brian

Is the field always null when blank?

Is the field a date type?

Why not exclude records "Where blank" or Where Null" ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top