A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I use expression formula to calculate two value?



 
 
Thread Tools Display Modes
  #1  
Old October 7th, 2005, 06:12 AM
Learn new skill
external usenet poster
 
Posts: n/a
Default How do I use expression formula to calculate two value?

I want to calculate the difference between two dates in Access. How do I
enter the expression formula? I am at the Table Design only.
  #2  
Old October 7th, 2005, 07:00 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

See:
Calculated fields
at:
http://allenbrowne.com/casu-14.html

The article explains how, when, and why to create a calculated field in a
*query* (not at the table level).

Use DateDiff() for the difference between 2 dates.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Learn new skill" Learn new wrote in
message
...
I want to calculate the difference between two dates in Access. How do I
enter the expression formula? I am at the Table Design only.



  #3  
Old October 7th, 2005, 07:07 AM
Vincent Johns
external usenet poster
 
Posts: n/a
Default

Learn new skill wrote:

I want to calculate the difference between two dates in Access. How do I
enter the expression formula? I am at the Table Design only.


Table Design View won't help much -- you'll need a Query.

Define a Query based on your Table. In a field in the Query (in Query
Design View), enter something like this:

ElapsedDays: DateDiff("y",[MyTable]![Date],Now())

-- Vincent Johns
Please feel free to quote anything I say here.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to calculate federal income tax mikeburg General Discussion 1 August 26th, 2005 05:30 PM
Can someone help with a formula to calculate dates? SharonP. General Discussion 11 August 9th, 2005 01:47 PM
Formula to Calculate Age Tabitha Worksheet Functions 2 January 24th, 2005 04:09 PM
WHAT IS THE FORMULA TO CALCULATE HOURS BETWEEN TWO TIMES babu General Discussion 4 September 27th, 2004 11:27 PM
Creating formula to calculate future dates... wikked21 Worksheet Functions 1 March 8th, 2004 03:22 PM


All times are GMT +1. The time now is 09:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.