A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculating a Date



 
 
Thread Tools Display Modes
  #1  
Old June 1st, 2005, 12:03 AM
Jose Oliver
external usenet poster
 
Posts: n/a
Default 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  
Old June 1st, 2005, 12:04 AM
Ofer
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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 05:08 PM


All times are GMT +1. The time now is 12:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.