Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
Home > Help > AccessDev.NET >
AccessDev.NET AccessDev.NET

Microsoft Access Developer Network

Welcome to the Access Developer Network. If you are looking for someone to help you with your Microsoft Access database issues, troubleshoot problems, or even build a database for you, then you have come to the right place. For complete information on the Access Developer Network, please click here for details and instructions for posting.

Want to see Testimonials from other clients that have found Access help here in the Developer Network? Click here.

Developer Students: if you're interested in picking up some consulting work, subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receive new comments.

Please note, that I do allow any of my students to respond to requests posted here. It's an open forum. However, unless you see the Access Veteran badge next to their name (shown at right), then I do not personally recommend them. My Access Veterans are long-time students of mine who I know have completed most, if not all, of my Developer lessons and really know what they're doing when it comes to Microsoft Access. 

As a disclaimer, I take NO responsibility for any work provided by ANY person you may meet through this Forum. This is simply a meeting place I have arranged to put people who NEED help together with people who want to PROVIDE help. I, Richard Rost, assume NO liability for any services provided. Use at your own risk. Same goes for both users and providers. You are both responsible for your own interactions, work to be done, and any payments promised. 


Absence Tracking Upload Images   Link  
Eric Wallace 
2 months ago
I am working on an HR database application. We track time in 3 categories: PTO, sick and leave. Sick time and leave time are based on the calendar year. PTO however, is tracked by service date. Currently my design includes an employee table with relationship to the absence table that contains fields for employee, occurrence date, category and amount of time. I have a single form set up for entering occurrences. My goal is to set up a single form to display an individual employees occurrences with balances remaining. I am trying to build a table using a query to produce the appropriate start date for tracking PTO. Meaning, if today is 9/8/2021 and they reset 11/20/2021, the query needs to set the PTOreset date to 11/20/2020. I have tried DateAdd with my best guesses at an IIf statement in the query but, it either changes all years or leaves the fields blank. Any help or suggestions for another way are welcome. If I can get that piece right I think Ive learned enough to setup the queries for the end result form with totals using criteria but I just cant figure out the date problem. Any suggestions are welcome.
Alex Hedley
2 months ago
Can you share what you've tried code wise?
Adam Schwanz
2 months ago
What are you trying to have happen? How does service date affect the PTO reset date? I'm assuming you store a "start date" in the employee table? What's stopping you from using that or is there some other strange calculation that you can't just use an if statement to pick the current year if todays date is before the start date or current year+1 (next year) if todays date is after the start date?
Eric Wallace
2 months ago
Yes, I have a start date in the employee table and that is the date I am trying to manipulate. PTO balances reset to their starting amount on their start date and I am working towards taking the start date and changing it to the proper PTO reset date. In the example today being 9/8/2021 and their start date was 11/20/1997, I want the query to take 11/20/1997 and change it to 11/20/2020 as that was the last reset of PTO. I have tried several things like formatting the start date to current year as [ServiceDate] in a new field and then tried something like this: PTOResetDate: IIf([ServiceDate]>=Date(), DateAdd([ServiceDate], "yyyy"-1). I had planned to run this as a make table query to then use the PTO reset date as criteria on the single form with calculations to keep running totals of use/balances remaining. I am probably overcomplicating this but, hopefully the elaboration makes sense...
Adam Schwanz
2 months ago

Adam Schwanz
2 months ago

Adam Schwanz
2 months ago
Thats almost certainly not the cleanest way to do it, but it works
Adam Schwanz
2 months ago
That's their last reset date, which I think is what you're wanting?
Eric Wallace
2 months ago
Thanks Adam! That looks to be exactly what I was trying to get to.
Add a Reply

Show All Comments

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

11/22/2021Currency Symbols
11/13/2021Access Developer 36
11/13/2021Access Developer 36 Lessons
11/13/2021Access Developer 36
11/13/2021Control Tip Text
11/11/2021Link to Excel
11/11/2021Read Write Excel Data
11/10/2021Moving Average

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: microsoft access developer network forum  PermaLink