D
DawnTreader
Hello All
i have a stupid problem. stupid because the Do Not Telemarket list here in
Canada is a sham and money grab. regardless i have to make a list of phone
numbers that i can call.
i am looking at getting a list with all the numbers that exist, taking away
the ones from the DNT list and then adding back the customers that may have
been taken out. we are allowed to call numbers that are currently customers
whether they are on the DNT or not.
basically i start with 3 tables, tblPurchasedList, tblDoNotTelemarket,
tblCustomers. each of these are imported and will be imported on a regular
basis. then i need the application i am creating to put the purchased list
into the tblFinalConsumersToCall. i have this part working the way i want it.
the tblFinalConsumersToCall looks like this:
ID PurchID DateAdded DNTID DateDeleted CustID DateAddCust PrintID DatePrinted
1 1 15/01/2009 1 15/01/2009
11 11 15/01/2009 14486 26/01/2009
16 16 15/01/2009 128281 15/01/2009
17 17 15/01/2009 136138 15/01/2009 323 26/01/2009
23 23 15/01/2009 4 26/01/2009
24 24 15/01/2009 190230 15/01/2009 5 26/01/2009
of course there is phone numbers in those records as well, but i am not
going to put them up here especially since they arent necessary because
everything can go by the ID fields.
the idea was to have this table store all records regardless of whether they
can be called or not, but to have the system figure out if they can be
called. so at this point i want to be able to say, if there is a DNTID then
dont show them unless there is also a CustID and if there is a PrintID then
dont show them no matter what.
like i said the stuff leading up to this table is fine, my problem is how to
make the system work through the logic and return only the records that
havent been printed, and are not DNTID'ed unless they are a customer.
any and all help appreciated
i have a stupid problem. stupid because the Do Not Telemarket list here in
Canada is a sham and money grab. regardless i have to make a list of phone
numbers that i can call.
i am looking at getting a list with all the numbers that exist, taking away
the ones from the DNT list and then adding back the customers that may have
been taken out. we are allowed to call numbers that are currently customers
whether they are on the DNT or not.
basically i start with 3 tables, tblPurchasedList, tblDoNotTelemarket,
tblCustomers. each of these are imported and will be imported on a regular
basis. then i need the application i am creating to put the purchased list
into the tblFinalConsumersToCall. i have this part working the way i want it.
the tblFinalConsumersToCall looks like this:
ID PurchID DateAdded DNTID DateDeleted CustID DateAddCust PrintID DatePrinted
1 1 15/01/2009 1 15/01/2009
11 11 15/01/2009 14486 26/01/2009
16 16 15/01/2009 128281 15/01/2009
17 17 15/01/2009 136138 15/01/2009 323 26/01/2009
23 23 15/01/2009 4 26/01/2009
24 24 15/01/2009 190230 15/01/2009 5 26/01/2009
of course there is phone numbers in those records as well, but i am not
going to put them up here especially since they arent necessary because
everything can go by the ID fields.
the idea was to have this table store all records regardless of whether they
can be called or not, but to have the system figure out if they can be
called. so at this point i want to be able to say, if there is a DNTID then
dont show them unless there is also a CustID and if there is a PrintID then
dont show them no matter what.
like i said the stuff leading up to this table is fine, my problem is how to
make the system work through the logic and return only the records that
havent been printed, and are not DNTID'ed unless they are a customer.
any and all help appreciated