My Assistant
![]() ![]() |
|
|
Sep 11 2005, 05:47 PM
Post
#1
|
|
|
UtterAccess Enthusiast Posts: 92 |
I have a form that has a calculated field based on the difference between two dates. The calculation obviously errors if both date fields are not filled in. This happens upon moving to a new record where neither dates are filled in. How do I make the calculation conditional to both dates being filled in?
|
|
|
|
Sep 11 2005, 06:27 PM
Post
#2
|
|
|
Utter A-fishin'-ado Posts: 17,723 From: Cincinnati, Ohio, USA . . . ><((((°> |
=IIf(Date1 Is Not Null and Date2 Is Not Null,DateDiff("d",Date1,Date2),"")
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 25th May 2013 - 01:48 AM |