V
Vadimbar
Hello, I'm tring to run a query that calculates total # of days. I have two
fields [Scarif Date] and [Stratif Date]. I can have a value in either one or
both or none. [Plant age] would capture the # of days.
Example
If record has both [Scarif Date] and [Stratif Date] date values then [Plant
Age]=Date()-[Stratif Date]
If value has [Stratif Date] value but no [Scarif Date] date value then I
still need [Plant Age]=Date()-[Stratif Date]
If value has [Scarif Date] value and no [Stratif Date] value then I need
[Plant Age]=Date()-[Scarif Date]
How do I implement these 3 scenerios into a query?
I tried using the Iff function but I dont know how to implement all three
possible conditions with three different outcomes.
Thank you,
Vadimbar...
fields [Scarif Date] and [Stratif Date]. I can have a value in either one or
both or none. [Plant age] would capture the # of days.
Example
If record has both [Scarif Date] and [Stratif Date] date values then [Plant
Age]=Date()-[Stratif Date]
If value has [Stratif Date] value but no [Scarif Date] date value then I
still need [Plant Age]=Date()-[Stratif Date]
If value has [Scarif Date] value and no [Stratif Date] value then I need
[Plant Age]=Date()-[Scarif Date]
How do I implement these 3 scenerios into a query?
I tried using the Iff function but I dont know how to implement all three
possible conditions with three different outcomes.
Thank you,
Vadimbar...