Calculating a Date

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

Guest

I am trying to build a Form which calculates the days it takes to accomplish
certain tasks. I have the following table displayed in a Form:

InitialDate | Days | EndDate
------------+--------+-----------
1/1/2005 | 2 |

Is there a way using expressions in which when a user enters and InitialDate
and the number of Days, the EndDate is determined by adding the InitialDate
plus the Days.

For example:

InitialDate | Days | EndDate
------------+--------+-----------
1/1/2005 | 2 | 1/3/2005

EndDate = automatically calculated.
 
Yes, you should use the dateadd function

=dateadd("d",Days,InitialDate)
Read the help about the dateadd function and you'll find it usefull when you
want to add days month years.
 
Back
Top