I am in a quandary and can't think of how to do this. I have scheduled events that need to run and what if they are missed? On what days were they missed and how many times up until now have they been missed? So I need to Create a list of missed events and what dates they were on so I can check them off to be entered. I have managed to figure out how many days have transpired and how many times the event was missed. On what days, NOT!
Here are my field names and criteria as a screen shot. By my calculations EventID 21 has been missed 15 times. So I would ask the user if they wanted to enter those transactions now or not and if so which ones? I FORGOT TO MENTION THAT THESE EVENTS ARE SCHEDULE TO RUN EVERY DAY.
Here is what I have done since the post:
I added these 2 fields to my table, hope it works! I have nothing to go off so I did a update query and set the dates to yesterday and to true to test.
missdte Yes/No was this a missed event?
missdte Date/Time On what date was it missed?
I added this code to my OnCurrentEvent Procedure:
'Purpose: To check for missed event, if found mark missed as true and set date to today.
If [nextschddte] < Date And IsNull([ChkNo]) Then
Me.missev = True
Me.missdte = Date
End If
EventID is PK
EventStart Date Event Was First Entered (Date)
nextschddte is the next scheduled date to be entered (Date)
dteentered is the last date it was entered (Date)
enter if it was entered or not (yes/no)
ChkNo is Check Number (Number)
Days number of days since eventstart
Missed number of times event has been missed