jpac Posted August 13, 2004 Posted August 13, 2004 I'm trying to set-up a database to enter a date an employee starts work at a location and then will give me a notification when they have been there for 45 days. Also I would like it to count only Monday through Friday. Is this possible??
The Shadow Posted August 13, 2004 Posted August 13, 2004 If your date field is d, then: d + 44 + If ( DayOfWeek ( d ) = 2; 16; 18 ) Would be a calculation (return type is date) that is the 45th M-F from when they started, assuming they start on a M-F. This works because if they start on monday, they'll have seen only 8 weekends (16) after 45 work days, and 9 weekends (18) if they wrap into the next week. If you wanted to change the number of days to some other number than 45 (exactly 9 weeks), the calculation would be quite different.
jpac Posted August 13, 2004 Author Posted August 13, 2004 Thanks, It worked well. I added a script to run on startup that will beep and omit all records that meet the criteria. I then choose SHOW ALL OMITTED RECORDS and all is well in Gotham City. Thanks Much.
Recommended Posts
This topic is 7476 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now