Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / April 2008

Tip: Looking for answers? Try searching our database.

determine number of weeks between 2 date with decimal

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Question Boy - 24 Apr 2008 22:57 GMT
How can I determine number of weeks between 2 date with decimal precision.

let say if the was a delta of 6 day between 2 date return 6/7 = 0.86

I tried the DateDiff("ww",.....) but it return whole number not decimal as I
require in this instance.

Thank you,

QB
Marshall Barton - 24 Apr 2008 23:37 GMT
>How can I determine number of weeks between 2 date with decimal precision.
>
>let say if the was a delta of 6 day between 2 date return 6/7 = 0.86
>
>I tried the DateDiff("ww",.....) but it return whole number not decimal as I
>require in this instance.

Does this work for you?

DateDiff("d", date1, date2) / 7

Signature

Marsh
MVP [MS Access]

Question Boy - 25 Apr 2008 00:08 GMT
Marshall,

I feel so stupid right now!

QB

> >How can I determine number of weeks between 2 date with decimal precision.
> >
[quoted text clipped - 6 lines]
>
> DateDiff("d", date1, date2) / 7
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.