473,387 Members | 1,553 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,387 software developers and data experts.

Help with recurring monthly payments and First time fee

14
Hello,

I have a database for rental units and i have two problems that i cannot solve. I have a table with 4 different options of units with different prices. what i would like to do is for the first time customers there is 1 time fee, how would i be able to charge them only 1 time and no charge after that.

My second question would be i have a payment form also and lets say a person joined today and has to pay 40 for monthly rental and 20$(the 1 time payments) which comes to 60$, and the person pays it in full so the balance is 0$, how would i set it up that a month from now, the 0$ will turn again to 40$ so the person has to pay again?

And also would i be able to set up a late charge if they dont pay on the day that they are supposed to?

Thanks for all the help....
May 31 '07 #1
5 3395
MMcCarthy
14,534 Expert Mod 8TB
Hello,

I have a database for rental units and i have two problems that i cannot solve. I have a table with 4 different options of units with different prices. what i would like to do is for the first time customers there is 1 time fee, how would i be able to charge them only 1 time and no charge after that.

My second question would be i have a payment form also and lets say a person joined today and has to pay 40 for monthly rental and 20$(the 1 time payments) which comes to 60$, and the person pays it in full so the balance is 0$, how would i set it up that a month from now, the 0$ will turn again to 40$ so the person has to pay again?

And also would i be able to set up a late charge if they dont pay on the day that they are supposed to?

Thanks for all the help....
Hi slavisa

I would need a lot more information on how this database is structured and how your tables are set up. Have a look at this tutorial and see how you should structure your tables. Ask any questions if there is anything you don't understand.

Database Normalisation and Table structures

Mary
Jun 1 '07 #2
slavisa
14
i have couple of questions where i got stuck during the creation of the appended query. I created the query but i dont know which fields should i add to it since there are 4 different accounts in the database which charge different fee.

As for the one time fee, i would like it to be charged as soon as the account is opened. I tried doing it where after the Date joined is entered there is an event to add 25 one time fee to the amount due using the vb code but i could not get it to work.

I included what tables and fields i have and their relationships below for you so you can check and see if you can give me other great inputs. Thanks a lot

Members Table
Expand|Select|Wrap|Line Numbers
  1. MemberID - autonumber (PK)
  2. First name
  3. last name
  4. unit number
  5. unit type
  6. home addy
  7. city
  8. state
  9. zip code
  10. home phone
  11. email
  12. birth date
  13. date joined
  14. cell phone
  15. member dues
Member Types Table
Expand|Select|Wrap|Line Numbers
  1. Member Type ID (4 fields) (PK)
  2. Unit Type ( 5x10,10x10,10x15,10x20) 
  3. Member Dues ($40, $70, $90, $110)
Payment Method Table
Expand|Select|Wrap|Line Numbers
  1. Payment Method ID (PK)
  2. Payment Method
Payments Table
Expand|Select|Wrap|Line Numbers
  1. Payment ID (PK)
  2. Member ID
  3. Payment Amount
  4. Payment Date
  5. CC#
  6. Cardholders Name
  7. Card Exp. Date
  8. CC Author#
  9. Payment Method


[Member] MemberID - [Payments] MemberID ------> ONE TO MANY

[MemberTypes]MemberTypeID - [Member]MemberTypeID

[Payments]PaymentTypeID - [PaymentType]PaymentMethodID



Sum of Payments Query

Member Types Form
Members Form
Payment Methods Form
Payments Form

5 Reports also
Jun 1 '07 #3
slavisa
14
Ok i figured out the one time charge fee since i was familiar with VB. What i did was i created an even on the Date Joined filed where when the date is first inputed (And it will stay the same always) add 25$ one time fee to the member dues.

Now whats left is the Montly recurring payment and the late charge fee if thats possible to create.
Jun 1 '07 #4
slavisa
14
I have finished the late payment fee.

Would anyone be able to help me out with recurring monthly fee.

I know that i can do it in two ways as i was told but i dont know how and where to start. I create some of it but i dont know what to include in the appended query etc.

i was told that In Access Help, look for COMMAND LINE OPTIONS and you will find -X macro, which is a way you can run a given macro from a command line.

"Create an append query that adds a $40 charge to every open account. Put this query to run in a macro. Create a separate icon that is private to you so that only you know where it is. Edit the icon properties to launch access on that database file with the -x macroname appended. Now use Windows Task Scheduler to launch the icon at a specific time of day on the 10th of each month. Don't forget that the macro has to end with a QUIT action."
Jun 2 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
The problem here is with the Member types table.

Your primary key I understand is a composite of 4 fields. You should never do this.
What are the fields?
How does this relate to the Members table?
Why is Member Dues in both the Members and Members Types table?
Jun 4 '07 #6

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

Similar topics

13
by: Mike | last post by:
Normally scheduling a job is a very elementary operation but for some hidden reason I've been unable to schedule a job which runs on a 28 day cycle, even though I have at least 16 other jobs...
18
by: Jeremy Weiss | last post by:
I'm trying to build a database that will handle the monthly billing needs of a small company. I'm charting everything out and here's what I see: table for customers sub table to track payments...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
3
by: cameron | last post by:
Hi I am new here in this forum: I am writing a C++ program to calculate a Montly Mortgage Payment where the loan amount is 200,000.00 with a 5.75% interest rate with a term of 30 years. My program...
6
by: Twobridge | last post by:
I hope someone can help me out with my problem. I have found a sql statement that basically pulls all bills filed within a certain time period and the payments made on those bills with in the...
36
by: aljamala | last post by:
Hi, I keep getting this warning on a page, but I do not know what the problem is...does anyone have an idea about what could be wrong? line 88 column 7 - Warning: missing </formbefore <td> it...
1
by: AR123 | last post by:
The mandatory form field that is not working is the TYPE OF ILLUSTRATION. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Proforma</title> <meta...
0
by: Rog | last post by:
Who am I?: Hi I am a 'one-man-show' and mainly in the ecommerce and community business based in Western Europe. With over 13 years experience in the internet and telecommunication business, I...
8
by: Energizer100 | last post by:
My assignment is LoanTable Background: When buying a home, a very important financial consideration that many buyers face is obtaining a qualifying loan from a financial institution. ...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.