C
ChuckW
Hi,
I have a query called YesterdayTRX that list the Customer
that came into our client and treatment code. We have
four treatment codes: BEA, BTA, FAC and MAS. There is a
separate table called TreatmentType that list these codes
and their the TreatmentNames. Using a cross tab query I
also created a summary of all of our customers and the
count of all treatment codes (including yesterdays)called
Coupon1. I then create some if then logic to identify all
people who had an MAS but not a FAC, a FAC but not an
MAS, a BTA but not a MAS and a BEA but not a FAC called
Coupon2. I created a field called SendCoupon and have
everyone who meets these conditions be assigned a value
of -1.
What I want to do now is to send offers to everyone who
satisfy these conditions. I have two coupons that are
JPEG files: FAC.JPEG and MAS.JPEG. I want to create a
letter using an Access Report that says something like:
----------------------------------------------------
Dear XXXXX,
We'd like to thank you for choosing us for your
[TreatmentName].
In appreciation we are sending you this voucher.
--------------------------------------------------
At the bottom of the letter one of the two types of
vouchers would appear. FAC.JPEG for people who had a MAS
or BEA and the MAS.JPEG for people who had a FAC or BTA.
For example, if someone came in for an MAS yesterday and
never had a facial - based on the Coupon2 query, they
would get a letter thanking them for coming in for the
massage and they would receive a coupon for a facial.
The JPEG file could print on the bottom of the Access
report as part of the letter. Can anyone help me with
how to do this one?
Thanks,
Chuck
I have a query called YesterdayTRX that list the Customer
that came into our client and treatment code. We have
four treatment codes: BEA, BTA, FAC and MAS. There is a
separate table called TreatmentType that list these codes
and their the TreatmentNames. Using a cross tab query I
also created a summary of all of our customers and the
count of all treatment codes (including yesterdays)called
Coupon1. I then create some if then logic to identify all
people who had an MAS but not a FAC, a FAC but not an
MAS, a BTA but not a MAS and a BEA but not a FAC called
Coupon2. I created a field called SendCoupon and have
everyone who meets these conditions be assigned a value
of -1.
What I want to do now is to send offers to everyone who
satisfy these conditions. I have two coupons that are
JPEG files: FAC.JPEG and MAS.JPEG. I want to create a
letter using an Access Report that says something like:
----------------------------------------------------
Dear XXXXX,
We'd like to thank you for choosing us for your
[TreatmentName].
In appreciation we are sending you this voucher.
--------------------------------------------------
At the bottom of the letter one of the two types of
vouchers would appear. FAC.JPEG for people who had a MAS
or BEA and the MAS.JPEG for people who had a FAC or BTA.
For example, if someone came in for an MAS yesterday and
never had a facial - based on the Coupon2 query, they
would get a letter thanking them for coming in for the
massage and they would receive a coupon for a facial.
The JPEG file could print on the bottom of the Access
report as part of the letter. Can anyone help me with
how to do this one?
Thanks,
Chuck