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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculating days from two date fields



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2009, 08:28 PM posted to microsoft.public.access.forms
Fly Boy 5
external usenet poster
 
Posts: 50
Default Calculating days from two date fields

I have a field called Date_Fm and another Date_To for vacation dates. I need
to calculate days.

I appreciate your help!
  #2  
Old April 21st, 2009, 08:36 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Calculating days from two date fields

In a query, Datediff("d",[date_fm],[date_to])
In a form, =Datediff("d",[date_fm],[date_to])
--
Milton Purdy
ACCESS
State of Arkansas


"Fly Boy 5" wrote:

I have a field called Date_Fm and another Date_To for vacation dates. I need
to calculate days.

I appreciate your help!

  #3  
Old April 21st, 2009, 08:49 PM posted to microsoft.public.access.forms
Fly Boy 5
external usenet poster
 
Posts: 50
Default Calculating days from two date fields

Worked like a champ! Thanks,

"golfinray" wrote:

In a query, Datediff("d",[date_fm],[date_to])
In a form, =Datediff("d",[date_fm],[date_to])
--
Milton Purdy
ACCESS
State of Arkansas


"Fly Boy 5" wrote:

I have a field called Date_Fm and another Date_To for vacation dates. I need
to calculate days.

I appreciate your help!

 




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


All times are GMT +1. The time now is 02:42 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.