473,568 Members | 2,986 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access formula question...

3 New Member
I want to create a query formula in Access.
I have 2 columns that have dates eg: 02/03/06 - from those 2 columns I want access to add the 2 dates and give me a number. I am stuck on what criteria I use to give me the result.
Can someone help me please....

Thanks in advance...
Mar 24 '07 #1
6 1664
ADezii
8,834 Recognized Expert Expert
I want to create a query formula in Access.
I have 2 columns that have dates eg: 02/03/06 - from those 2 columns I want access to add the 2 dates and give me a number. I am stuck on what criteria I use to give me the result.
Can someone help me please....

Thanks in advance...
What exactly do you mean "add the 2 dates"?
Mar 24 '07 #2
missinglinq
3,532 Recognized Expert Specialist
I'd like to know this, too! Came across a question elsewhere last month where someone wanted to "add two times together"; not a time and minutes or hours, but two times!
Mar 24 '07 #3
Stormy
3 New Member
Sorry what I mean is:

I want to calculate the two dates together example:

02/03/03 05/03/03 the days between is 3.

I want to know the formula to do that.

Hope that makes it clearer.
Mar 24 '07 #4
missinglinq
3,532 Recognized Expert Specialist
Hey, Stormy! If the difference between 02/03/03 and 05/03/03 is 3 days, you must be on the other side of The Pond! In the USA the difference would be 89 days! Neverless, since you want the difference between two dates, you need to use...yep! The DateDiff Function!

DifferenceInDay s = DateDiff("d", YourFirstdate, YourSecondDate)

The "d" makes the answer come up in days. To find out how to get the difference in other units, such as weeks or months, in the code window, place your cursor within "DateDiff" and press <F1>

Good Luck!

Linq
Mar 24 '07 #5
Stormy
3 New Member
Yeah sorry I forgot about that. I am in New Zealand and we don't have the dates the same as the USA.
Thanks for the help!
Appreciate it.
Mar 24 '07 #6
missinglinq
3,532 Recognized Expert Specialist
That's why we're here!
Mar 25 '07 #7

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

Similar topics

5
1906
by: jillandgordon | last post by:
I hope this group does not mind the most basic questions. I am trying to teach myself Access in two different versions. My company now uses Access 97 but, in the next few months, will be switching to Access 2003, so I am taking self-paced tutorials in both. I have a problem. I am trying to create a query from two different tables. One...
11
6657
by: Brian VanPelt | last post by:
I am not a very experienced VB user, but I was trying to make a form that a user could input a formula for summation. For example, I would like the user to input the beginning and end values of a counter, and also have the user input the formula to be added up. More explicitly, suppose a user wants to add up 1 + 1/2 + 1/3 + 1/4 + ... +...
2
1726
by: Ironman | last post by:
Dear Access Developers: I have an interesting problem that I hope someone could suggest how to solve: I have the following Report: Col-1 Col-2 -------- ------- 483.3 100
5
12183
by: nedian | last post by:
Hello I am student and trying to learn access.I am having problem in making a program can any one help me? i wanted to make 2 tables in access and then create a link.First i am telling u what these tables contain then i will proceed. (i have also tried this in excel but failed to do so). table 1 (contains following items)
4
10458
by: David_from_Chicago | last post by:
What I am trying to do is to simulate the LINEST functionality from Excel in Access through VBA. When I use LinEst in Excel I can get back five statistical results. Here are is the formula array I use: Slope {=LINEST(H72:H94,I72:I94,TRUE,TRUE)} SE {=LINEST(H72:H94,I72:I94,TRUE,TRUE)} RSquared {=LINEST(H72:H94,I72:I94,TRUE,TRUE)}...
0
1645
by: toton.basak | last post by:
In C++ any i can simulate some restricted access modifiers based on association & inheritance? eg, class BombMaker{ private: void makeAtomBomb(){ std::cout<<"making atom bomb\n"; } int getSecretFormula()const{return 51;} protected:
2
2912
by: welshkaiboy | last post by:
Due to the size of the data I have to manipulate I need to apply a excel formula in access which determines date of manufacture from a serial number 716001 so I use =VALUE(DATE(VALUE(MID(A1,3,1))+2000,1,1))+VALUE(MID(A1,4,3))-1 which gives 1/1/2006 How can I get this formula to work in access I know that the field name replaces the cell...
30
5649
by: Barry L. Bond | last post by:
Greetings! I just got a new Peet Brothers Ultimeter 2100 Weather Station. This new one has a way to display the heat index, if you press the "dew point" key twice. Being aware of all the controversy surrounding the exact calculation of the heat index, I would like my own software (which I programmed in the 1990's, when I got their...
24
2931
by: joeldault | last post by:
Question For Microsoft Access Data Base -------------------------------------------------------------------------------- I am Trying to create a single formula that would do the following: If A1 is less then or equal to 499, deliver B1*1, if A1 is equal to or less than 999 but more than and including 500, deliver B1*2, If A1 is equal to or...
0
7917
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. ...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7665
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...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5501
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...
0
3651
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...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.