Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
How to Calculate Work Days
Carolyn W 
    
4 years ago
I used the "How to Calculate Work Days Between Two Dates in Microsoft Access. Similar to Excel NETWORKDAYS." video and I can't figure out why the result won't go into the negative when my end date is before my start date (like it does in the Excel NETWORKDAYS)(ie BeginDate = 5/1/22 and EndDate = 4/15/22). I've tried setting it as long, integer, double etc, but the result only goes to 0 and not negative when it should be a negative.  
Any help is greatly appreciated!
Carolyn
Kevin Robertson  @Reply  
          
4 years ago
DateTime Seminar

Also check out the Code Vault for the MyNetWorkDays Function
Carolyn W OP  @Reply  
    
4 years ago
The MyNetWorkDays function is what I am using (extended cut video) - but the data should be going into the negative (end date is prior to begin date) - but it is defaulting to 0.  Is it a formatting issue?  I have set the format to long, integer, double etc. all are defaulting to 0 rather than a negative number.
Scott Axton  @Reply  
        
4 years ago
How can you have negative time?  
You can't end before you even started.

Seems to me that you need to be checking that the EndDate is greater than the BeginDate.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 3:53:20 PM. PLT: 6s