Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Trying to create a field in Access that calculates time off.?
For example if I put that someone starts working on January 1st 2011, and every month they work they get 1 week off, I want the table to be able to calculate how much time off they would have on another date, say July 1st 2011.
1 Answer
- Simon BelmontLv 610 years agoFavorite Answer
Hi. To solve this question you have two or more options but the easy way is creating a query and type the following function:
Weeks_Off:DATEDIFF("M";[DT_INI];[DT_END])
Datediff function will bring the difference between two dates the way you want (you can use weeks, days, years, etc), it´s only a matter of typing the initial character of the criteria (w for week, m for month, y for year, d for day, etc).
In this case, it will show you the difference in months, the information you need to show.
Hope it helps.
Obs.: it´s only a matter of creating a query and copy and paste the formula/function I've type above. You'll need add the other fields so you'll have the complete set of information (name, dates, etc.)