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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can i update the experience date?



 
 
Thread Tools Display Modes
  #1  
Old January 14th, 2010, 04:40 AM posted to microsoft.public.access.reports
AxisNovice
external usenet poster
 
Posts: 4
Default How can i update the experience date?

Hi,

I would like to calculate the experience of service basing on today's
date, taken 2 two text boxes one is for entering the joining date of
an employee and at the same time other text is for counting his
service like .2 years and 5 months, should be automatically updated
after i've entered the service joined date..

The service should be automatically updated because i have to issue it
for 3 months...
thanks in advance..



  #2  
Old January 14th, 2010, 03:03 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default How can i update the experience date?

You would not store the duration of experience in any table.

Depending on the accuracy needed, you could use an expression like:
DateDiff("m",[JoiningDate],Date())
to display the number of months. One shortcoming is that DateDiff counts the
changes in the month. So
Jan 31, 2009 to Feb 1, 2008 = 1
while
Jan 1, 2009 to Jan 31, 2009 = 0

Or try the "More Complete DateDiff Function" Graham Seach and Doug Steele wrote.

http://www.accessmvp.com/djsteele/Diff2Dates.html

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

AxisNovice wrote:
Hi,

I would like to calculate the experience of service basing on today's
date, taken 2 two text boxes one is for entering the joining date of
an employee and at the same time other text is for counting his
service like .2 years and 5 months, should be automatically updated
after i've entered the service joined date..

The service should be automatically updated because i have to issue it
for 3 months...
thanks in advance..



  #3  
Old January 15th, 2010, 03:36 PM posted to microsoft.public.access.reports
AxisNovice
external usenet poster
 
Posts: 4
Default How can i update the experience date?

thank you ,
i'm trying more to concate the above expression with years and
months..
which i'm using in excel..
=DATEDIF(A1,B1,"y")&" years "&DATEDIF(A1,B1,"ym")&" months "&DATEDIF
(A1,B1,"md")
&" days"

Is it ok in MS Access to build expression..
 




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


All times are GMT +1. The time now is 01:07 PM.


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