There are loads of these over the web, but none that would work for my table
"Public Function DateDiffW(BegDate As Date, EndDate As Date) As Integer
'Returns number of days, excluding Saturday and Sunday
'As written, counts both BegDate and EndDate, e.g.,
'Monday - Friday would count as 5 days...
Option Compare Database
Public Function DateDiffW(BegDate As Date, EndDate As Date) As Integer
'Returns number of days, excluding Saturday and Sunday
'As written, counts both BegDate and EndDate, e.g.,
'Monday - Friday would count as 5 days
'coded by: raskew
Const SUNDAY = 1
Const SATURDAY = 7...
I copied and pasted this Vba into access with my tables http://www.tek-tips.com/faqs.cfm?fid=4531
I then made a query with the following functions
The date due expressions can then be calculated by:
- Creating a provisional date due field and using this expression:
Provisional Date Due...
I copied and pasted this Vba into access with my tables http://www.tek-tips.com/faqs.cfm?fid=4531
I then made a query with the following functions
The date due expressions can then be calculated by:
- Creating a provisional date due field and using this expression:
Provisional Date Due...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.