473,503 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

calculate the contract end remaining days

2 New Member
i need to calculate the days left for a contract to end

i have a table contain the (start_cont) and from the query

i calculated the (end_cont)

end_cont=( DateAdd("d";-1;DateAdd("yyyy";3;[tbcontract]!
[start_day])).

now i whant to calculate the days left before the contract

end (ex= 2 days 3 monthe 2 years)in this format

pleas hlp accesss 2007
Feb 12 '12 #1
3 2496
ADezii
8,834 Recognized Expert Expert
It would look something like:
Expand|Select|Wrap|Line Numbers
  1. Days_Left:DateDiff("d", [start_day], DateAdd("d", -1, DateAdd("yyyy", 3, [start_day])))
Feb 12 '12 #2
musab hosawy
2 New Member
will i use this DateDiff("m";Date();date_end )& "monthe"

but its only give me the monthe i whant the days ,monthe, years

i need to Calculate difference between 2 dates in years months and remaining days
Feb 12 '12 #3
ADezii
8,834 Recognized Expert Expert
You would then need a Custom Function to perform the job.
Feb 12 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
14143
by: Rimdur | last post by:
I am trying to get a difference between two dates calculated in a query. I have Sales_Date as the first one, and Date() as the second one. How would I put the difference of these two days into a...
3
15599
by: sasan3 | last post by:
I came across a whole bunch of functions on this forum for calculating the number of days in a month. I am not sure if anyone has posted this equation but this is what I came up with: ...
5
13625
by: Beemer Biker | last post by:
I cant seem to get that date into any DateTime to make my calculation directly by subtracting "01-01-0000" from "now". After reading this:...
3
5942
by: Libber39 | last post by:
Hi everyone, Have a query on how to calculate the amount of weeks and days contained in a number in an access query. ie: the difference in days between 2 dates amounts to 17 days. I want to now...
1
2339
by: pyett101 | last post by:
hello everyone. im new to the forum and just started learnign c++ but im stuck with a problem. i want to write a simple program that takes a number of days, hours and minutes and converts them to...
20
3576
by: madhu3437 | last post by:
i am in big problem Under unix C Language i want return date format like MM/DD/YYYY this function should return above format . using system date calculate last 6 days mean clearly i am...
1
5272
by: AXRabbit | last post by:
Hi guys, I am currently doing a Car rental website project. Like my Car collection and return date is like in the website. http://www.avis.com/car-rental/avisHome/home.ac Well i need a function or...
2
3629
by: mukeshrasm | last post by:
Hi I want to calculate the number of days left for a particular event so when ever a user login to the website or visits the site may be able to view how many days left for that event. Example:...
0
1901
by: S Kajim | last post by:
Hi there, I need to calculate leap year days between two dates in PL/SQL. Will someone be able to help?
3
9921
by: PotatoChip | last post by:
I'm working in an Access XP database and I need to create a query which calculates what the date will be 6 business days after . I have no idea where to start and most posts I find on calculating...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.