I have struggled with this for a while now and I finaly realized that I need some pointers, so please help.
I have a table called "membership" that contains the following fields:
custID, activationdate, active, canceldate
The "active" field is a true/false field.
"canceldate" is always a newer date than "activationdate".
I would like to set the active field automaticaly. It should be true only if:
1) there is no cancel date
or
2) if there is a canceldate, than active should stay true until customer's payment runs out. (Payments are made in advance for 1 month, every month, on the date of original day of subscription found in start date, meaning that if account started on 04/04/03 than customer makes payments on the 4th of every month afterwards like 05/04/03, 06/04/03, etc. If they cancel on the 5th of any month they become inactive on the 4th of next month.)
Is this possible to do and if it is than how?
I have a table called "membership" that contains the following fields:
custID, activationdate, active, canceldate
The "active" field is a true/false field.
"canceldate" is always a newer date than "activationdate".
I would like to set the active field automaticaly. It should be true only if:
1) there is no cancel date
or
2) if there is a canceldate, than active should stay true until customer's payment runs out. (Payments are made in advance for 1 month, every month, on the date of original day of subscription found in start date, meaning that if account started on 04/04/03 than customer makes payments on the 4th of every month afterwards like 05/04/03, 06/04/03, etc. If they cancel on the 5th of any month they become inactive on the 4th of next month.)
Is this possible to do and if it is than how?