If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Calculating a Date
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. |
#2
|
|||
|
|||
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. "Jose Oliver" wrote: 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. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Query for 'confirmation' | rogge | Running & Setting Up Queries | 8 | April 19th, 2005 03:26 PM |
Making Excel generate Access-Like Reports | VJ7777 | General Discussion | 15 | September 12th, 2004 05:48 AM |
more dates!!! | brigid | Running & Setting Up Queries | 6 | May 26th, 2004 10:59 AM |
Calculating (Date and Time) differences | Frank Kabel | Worksheet Functions | 2 | April 27th, 2004 11:19 PM |
Does date fall between two ranges? | MR | Worksheet Functions | 4 | January 14th, 2004 04:08 PM |