OK, great. I will give it a try. Before I do though I think I should
explain that attendance is also an important factor used to determine the
next promotion due date. If attendance has been continually acceptable
(noted every week when hours worked are entered) for every paydate then the
last promotion date (or hired date if no promotions yet) is the base
promotion date. If attendance is unacceptable for a given paydate then the
last paydate where attendance was acceptable becomes the new base promotion
date, not the last promotion date (or the hired date if no promotions yet).
Once the base promotion date has been determined, a pre-specified number of
days (dependent on job title) is added to it to determine the next promotion
date.
The info I have is tblPersonalInfo containing ID, HiredDate, HiredTitle
tblJobTitleRatesDays containing JobTitle, JobRate, DaysTillPromo
tblWeeklyHoursAttendance containing ID, PayDate, HoursWorked, Attendance
tblJobPromos containing ID, PromoDate, PromoTitle
qryTheQuery containing EffectiveDate
The logic is something like this: If tblWeeklyHoursAttendance.Attendance for
tblWeeklyHoursAttendance.PayDate equals yes, then BasePromoDate equals
either the tblPersonalInfo.HiredDate (no promotions yet) or the
qryTheQuery.dtmEffectiveDate (this is from the query you just helped with)
whichever is more recent, otherwise BasePromoDate equals the last
tblWeeklyHoursAttendance.PayDate where tblWeeklyHoursAttendance.Attendance
is yes. Then the NextPromoDate equals BasePromoDate +
tblJobTitleRatesDays.DaysTillPromo.
One thing that has been bothering me the whole time is whether the
tblJobPromos should be tied into the query you helped me with instead of
existing in a table. Why I am saying this is because sometimes the
HiredDate is the BasePromoDate (no promotions yet) while othertimes it is
the PromoDate (when there have been promotions). Any suggestions on this
matter are greatly appreciated. Thank you !
> Non-equi joins (joins where something is = to something are equi joins)
> cannot be represented in the design view (query grid);
[quoted text clipped - 76 lines]
>>>>
>>>> Any help is greatly appreciated. Thank you.
John Spencer - 12 Nov 2007 12:53 GMT
Sorry, I don't follow all that and I can't really spend all the time it
would take me to decipher it and develop a solution.

Signature
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
.
> OK, great. I will give it a try. Before I do though I think I should
> explain that attendance is also an important factor used to determine the
[quoted text clipped - 110 lines]
>>>>>
>>>>> Any help is greatly appreciated. Thank you.