Ignore future dates

T

Tom Owen

How do I get a module to ignore future dates in
calculations?

For example say Date1 minus Date 2 returning a value in
days.
 
J

John Mishefske

Tom said:
How do I get a module to ignore future dates in
calculations?

For example say Date1 minus Date 2 returning a value in
days.
Without knowing more I'd say that you limit the date with a
test in your calculation:

IIF([yourDate] > Date, Date, [yourDate])

So you might have:

IIF([Date1] > Date, Date, [Date1]) - IIF([Date2] > Date, Date, [Date2])

this prevents future dates.
 

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