Counting days (1 Viewer)

MaleNurse325

Registered User.
Local time
Today, 03:51
Joined
Jan 11, 2016
Messages
72
Ah another one?

So I have s sub form called sfrmSickness

1719238162809.png


I would like to calculate the number of episodes of sickness absence in the last year. (=today()-365 days)

Thanks guys
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:51
Joined
Oct 29, 2018
Messages
21,682
In Access, you can use the DateDiff() function.
 

plog

Banishment Pending
Local time
Today, 05:51
Joined
May 11, 2011
Messages
11,724
This isn't a form issue. Not criticizing you for posting in the wrong sub, I just want you to learn to focus on what the real issue is. Forms and Reports are the things people see so they often conflate all issues with either of those. This is a data/logic issue.

For this data issue, we need more information. I don't really understand what you want to end up with. So can you explicitly tell me? You posted sample starting data in your first post, so please tell me what you hope to end up with from that starting data.
 

Users who are viewing this thread

Top Bottom