473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to I use the payment date to determine the amount due?

If members of the club pay their dues late, we assess a penalty that varies depending on when the payment is received. I have set up two tables, "Payment Due Dates and Amounts" and "Dues"

The Payment Due Dates table has three fields, "Start Date", "End Date", and "Amount", that specifies the total amount due with the start and stop dates for each amount. This table has multiple rows, each with a new amount.

The Dues table contains the membership number, the date they paid, and the amount they paid. If the member made partial payments, then each partial payment is listed.

What I want to do is compare the date that the member paid (stored in the dues table) with the range of dates (stored in the Payment table) and then return with the appropriate amount. [If the member made multiple payments then will need to use the first date listed..]

I realize that this is probably a simple problem, but I'm a novice to Access, and am basically trying to teach myself as I go along. Many Thanks for your help.
Nov 19 '16 #1
1 886
PhilOfWalton
1,430 Expert 1GB
This is not too difficult, but I wonder if you are doing this the easiest way.

In a Club I have been involved in there is a fee for each class of membership, and a percentage discount applied to that fee, depending in the month paid.

Each member has a ClassID associated with him/her that points to the membership fee for that class.

So your PaymentDueDate then becomes very simple with a StartDate, and 12 discounts, one for each month, that apply to the appropriate fees.

The fee due is found by finding the gross fee, seeing which month the first payment was made and finding the corresponding discount to apply to that gross fee.

Let us know if this looks a better option.

Phil
Nov 19 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: The Blob | last post by:
Hi all, I have a problem trying to generate the u/m list of customer. I am trying to generate a list of customer whoes last commence date is jan 04 to current. It is part of a billing...
2
by: Bill | last post by:
Question: For a table like this: Date | Description | Amount | Balance 9/25/04 | payment on acct | 25.00 | 0.00 10/1/04 | delivery | 54.25 | 54.25 11/5/04 | payment on...
0
by: Terry Olsen | last post by:
Using #ZipLib, I'm zipping up large files (100MB & >). I'm using a byte array to read in the file and write out to the zip file. The bigger the chunks I can read in the faster the zipping goes. ...
3
by: rlbSQL | last post by:
I am trying to find the last payment date made to a vendor in a table. This table has many vendors I will need to have a line for each vendor and what thier last payment date is. I assume it...
3
by: rlbSQL | last post by:
Here is my SQL I am getting the information but should only see 1 record per vendor ID I only want to see the max date. What am I missing to reduce the mulitple lines for this output. Thanks....
1
by: myemail.an | last post by:
Hi all, I am a novice to Access, and was wondering if I could get some help on a problem I can't solve. I have a database with customer payments, structured like this: customer code type of...
3
by: David Snyder | last post by:
I have a date that is used to show when someone completed a task and the task is due again in 12,24,48 months. I am trying to update a field for the next due date. Of course after I get this done, I...
2
by: Marsha McCarthy | last post by:
Hi, I have have an access database for my accounts receivable. I have a table named "Invoice Table" with the Invoice Data some of the key fields are Invoice Reference Number (auto number from...
5
by: Marsha McCarthy | last post by:
Question. I have a database with two tables: Table 1 - Invoice Table - Transaction ID (Auto Number) - Invoice Number - Invoice Date - Invoice Amount
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.