G
George
Dear friends, need your valuable help again.
I am working on a Medical Fund database. I have a table where all benefits
info is kept, e.g. medicines, up to 300 Euros / year. Over 300 and up to
500, 50%, >500 – no money is refunded. Tables also for Employees, for
Invoices etc.
I have created a form with subform – Invoices and benefits (one invoice with
many employees / benefits). On the many form I have the BenefitID (e.g.
medicines), the employee no (is a unique value), the amount (as shown on the
invoice) and the EligibleAmount (should be automatically calculated based on
the above criteria). I have also put some textboxes on the subform which
show me (for the current employee) the total amount for the current benefit
per year – I believe I will need this to accomplish what I want to do.
Example for EmployeeA for medicines
1/1/2010 – 200 Euros – Eligible Amount = 200 Euros (yearly total = 200)
1/2/2010 – 200 Euros – Eligible Amount = 100 + (100*50/100) = 150 (yearly
totals = 350)
1/3/2010 – 200 Euros – Eligible Amount = 200 * 50/100 = 100 Euros (yearly
totals = 450)
1/4/2010 – 200 Euros – Eligible Amount = 50 (the rest amount up to 500)
Any ideas of how should I calculate, based on the above criteria, the
EligibleAmount?
Thanking you in advance,
GeorgeCY
I am working on a Medical Fund database. I have a table where all benefits
info is kept, e.g. medicines, up to 300 Euros / year. Over 300 and up to
500, 50%, >500 – no money is refunded. Tables also for Employees, for
Invoices etc.
I have created a form with subform – Invoices and benefits (one invoice with
many employees / benefits). On the many form I have the BenefitID (e.g.
medicines), the employee no (is a unique value), the amount (as shown on the
invoice) and the EligibleAmount (should be automatically calculated based on
the above criteria). I have also put some textboxes on the subform which
show me (for the current employee) the total amount for the current benefit
per year – I believe I will need this to accomplish what I want to do.
Example for EmployeeA for medicines
1/1/2010 – 200 Euros – Eligible Amount = 200 Euros (yearly total = 200)
1/2/2010 – 200 Euros – Eligible Amount = 100 + (100*50/100) = 150 (yearly
totals = 350)
1/3/2010 – 200 Euros – Eligible Amount = 200 * 50/100 = 100 Euros (yearly
totals = 450)
1/4/2010 – 200 Euros – Eligible Amount = 50 (the rest amount up to 500)
Any ideas of how should I calculate, based on the above criteria, the
EligibleAmount?
Thanking you in advance,
GeorgeCY