I
ineedhelp
I know this query looks/sounds like a very tall order, but I would be sooooo
grateful of absolutely any suggestions.
I am producing a database for a company that deliver maintenance and support
services where their customers pay them a monthly/quarterly/annually fee for
the service. The business needs a system to record when their customers have
paid their due payments, which of their customers has paid their due payments
and when the next payment for each customer will be.
I have started by setting up a maintenance and support payment table:
M&S payment ID - primary key
Customer ID - number
Payment frequency - text or lookup value (monthly/quarterly/annually)
M&S start date - date
Date of payment - date
This would be a table for the company to enter each payment whenever they
receive one from a customer.
The problems that I am encountering is that depending on the payment
frequency of the customer, I can’t see a way of the system taking into
account leap years, 30 day months and 31 day months to determining next due
payment dates based on the most current payment date and payment frequency.
I had an idea to create a query to work out all of the next payment dates
for each customer with a payment.
Next due payment: [date of payment]+[payment frequency]
This would only work if the payment frequency is a number value, it would
obviously not work if the payment frequency field contained a text or lookup
value such as monthly.
One of my questions is, is there anyway of me turning the payment frequency
(monthly/quarterly/annually) into a number value, or using some sort of
calendar control to eliminate mistakes to do with leap years etc.
Secondly, I would be so grateful for any alternative layouts for tables or
queries for many payments to be added for each customer, and methods for the
user to record whether a due payment has been paid, and customers that have
still to pay their due payments.
Thank you
grateful of absolutely any suggestions.
I am producing a database for a company that deliver maintenance and support
services where their customers pay them a monthly/quarterly/annually fee for
the service. The business needs a system to record when their customers have
paid their due payments, which of their customers has paid their due payments
and when the next payment for each customer will be.
I have started by setting up a maintenance and support payment table:
M&S payment ID - primary key
Customer ID - number
Payment frequency - text or lookup value (monthly/quarterly/annually)
M&S start date - date
Date of payment - date
This would be a table for the company to enter each payment whenever they
receive one from a customer.
The problems that I am encountering is that depending on the payment
frequency of the customer, I can’t see a way of the system taking into
account leap years, 30 day months and 31 day months to determining next due
payment dates based on the most current payment date and payment frequency.
I had an idea to create a query to work out all of the next payment dates
for each customer with a payment.
Next due payment: [date of payment]+[payment frequency]
This would only work if the payment frequency is a number value, it would
obviously not work if the payment frequency field contained a text or lookup
value such as monthly.
One of my questions is, is there anyway of me turning the payment frequency
(monthly/quarterly/annually) into a number value, or using some sort of
calendar control to eliminate mistakes to do with leap years etc.
Secondly, I would be so grateful for any alternative layouts for tables or
queries for many payments to be added for each customer, and methods for the
user to record whether a due payment has been paid, and customers that have
still to pay their due payments.
Thank you