Hi all
I've inherited a number of databases at work from a colleague that has left and I need a small pointer if possible
This sounds a little complicated from the title but basically I have an event in a database (Preventative maint schedules) that should occur twice per week I need some method of flagging if the event hasn't occured once by Wednesday and Twice by friday
The event is stored in a "Current PM" table and there should be only one occurence of said event in this table as previous events are archived into another table every time a PM is completed
So I think I need to look at the Current PM table and look for the last occurrence of an event and if it hasn't happend between Monday and Wednesday e-mail a manager to ensure it gets done on the wednesday
similarly for the second occurence inthe week if it hasn't occured on Thursday then e-mail a manager so that it can be completed on the Friday
I hope this makes sense
any ideas??