473,659 Members | 2,662 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 2507
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";Da te();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
14150
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 field? I have tried something like this: DateDiff("d", Now(), Sales_Date) Then I get an error like this: "Datatype mismatch in criteria expression". Sales_Date is formatted as a Date format. -Thanks for all help
3
15646
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: NumDaysInMonth = 31-(Day(ddate+31)-Day(ddate)) Where ddate is any day in the month in question. S
5
13658
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: http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=11469&objectType=File I kluged up this routine that works: // convert date time into that funny matlab serial date time that starts at jan 1, 0000 private string DT2Matlab(DateTime thisDT)
3
5957
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 calculate in the query the amount of weeks and days within the 17 days to show 2 weeks 3 days. I can create the function within excel, (A1 as cell with the days within it) as: =INT(A1/7) & " Weeks, " & MOD(A1,7) & " days" but cant seem to...
1
2362
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 seconds on screen. i dont know where to begin. any help would be much appreciated. cheers :) John
20
3603
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 explain today date is :06/09/2008 the function return 06/03/2008
1
5291
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 method to calculate the number of days between Collection date/time and return date/time. I tried DateDiff(DateInterval.DayOfYear, startdate, enddate) But i cant get the answer. and also.. '
2
3638
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: an event will take place on 25 march 2010 so when user visit/logon to the website it will display remaining days for this event.
0
1913
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
9942
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 business days pertains to subtracting data in two date fields. I can build an expression in my query to add the date, Date_Due: + 5 but that doens't address the business days. Thanks in advance!
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8523
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6178
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
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.