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...
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"?
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!
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.
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
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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 + ... +...
|
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
|
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)
|
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)}...
| |
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:
|
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...
|
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...
|
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...
|
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. ...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |