N
ngan
I have Access XP with link tables to SQL server 2000. There is a read only
view that I linked to called NoShow. This lists all the times a rider was not
at their location when they are to be picked up (therefore they are flagged
noshow). Fields include clientid, pickup date, PU and DO addresses, etc.
Riders with only one noshow during this period gets no letter. Riders with
more than one, we have to send out a notification letter every time the rider
is no showed. In a floating 60 day period, if the rider hits the 6th no
show, a letter of suspension is sent out. We do these batch letters every
day.
Since the view is read only, I was thinking of creating a table called
tblLetter with fields LetterID (PK), ClientID, NoShowID, LetterSentDate,
LetterSentBy. So every time a letter is sent out, a new record is entered in
by the program and timestamped.
1. If the batch is running every day, noshow records that already had a
letter sent should be flagged so we don't send out a letter for that same
noshow the next day.
2. when the client reaches the 6th, the batch would send out a different
type of letter (suspension).
I'm at a stump on how to do both figure out which record has a letter sent
and the number of noshow the rider has.
Anyone can point me in the right direction?
Thanks.
view that I linked to called NoShow. This lists all the times a rider was not
at their location when they are to be picked up (therefore they are flagged
noshow). Fields include clientid, pickup date, PU and DO addresses, etc.
Riders with only one noshow during this period gets no letter. Riders with
more than one, we have to send out a notification letter every time the rider
is no showed. In a floating 60 day period, if the rider hits the 6th no
show, a letter of suspension is sent out. We do these batch letters every
day.
Since the view is read only, I was thinking of creating a table called
tblLetter with fields LetterID (PK), ClientID, NoShowID, LetterSentDate,
LetterSentBy. So every time a letter is sent out, a new record is entered in
by the program and timestamped.
1. If the batch is running every day, noshow records that already had a
letter sent should be flagged so we don't send out a letter for that same
noshow the next day.
2. when the client reaches the 6th, the batch would send out a different
type of letter (suspension).
I'm at a stump on how to do both figure out which record has a letter sent
and the number of noshow the rider has.
Anyone can point me in the right direction?
Thanks.