Datediff question

G

golfinray

On a report footer, I'm using an unbound textbox to find the number of days
from Plans Received to Plans Reviewed. =datediff("d",[plans received],[plans
reviewed]) and it is giving me zeroes where the fields are null. It doesn't
do that on any other forms. How do I get just nothing in that field if there
is nothing? Thanks a bunch!!!
 
J

Jack Cannon

Try this:

=IIf(IsNull([plans received]) Or IsNull([plans
reviewed]),"",datediff("d",[plans received],[plans reviewed]))

Jack Cannon
 
G

golfinray

That worked, thanks!

Jack Cannon said:
Try this:

=IIf(IsNull([plans received]) Or IsNull([plans
reviewed]),"",datediff("d",[plans received],[plans reviewed]))

Jack Cannon

golfinray said:
On a report footer, I'm using an unbound textbox to find the number of days
from Plans Received to Plans Reviewed. =datediff("d",[plans received],[plans
reviewed]) and it is giving me zeroes where the fields are null. It doesn't
do that on any other forms. How do I get just nothing in that field if there
is nothing? Thanks a bunch!!!
 

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

Top