Hi, this is a bit of a biggie, but I was wondering if anyone could help please.
I'm creating a database for loans of season tickets and I'm having problems with calculated fields in a query. The Database is based on a spreadsheet, which goes like this:
Name AmtofLoan PeriodLoanPaid NoOfRepayments FirstRepay OtherPaym DateofFirstPay LoanNo
Bloggs, Joe £1000 12/07 12 83.37 83.33 30/04/08 200801
Smith, John £500 01/08 12 41.74 41.66 31/05/08 200802
Jones, Peter £700 02/08 9 77.84 77.77 30/06/08 200803
Doe, John £1500 02/08 10 150.00 150.00 31/05/08 200804
Period is for financial year i.e. 12/07 would be March 2007. The Loan number is the year plus the ID.
The First Repayment and Other Payment fields are caluclated based on the No. of repayments. The formula of which is...
First Repayment: =AmtofLoan-((NoOfRepayments-1)*OtherPaym
OtherPaym: =ROUNDDOWN(AmtofLoan/NoOfRepayments,2)
This works fine for a spreadsheet, but recreating it in Access produces problems. First of all, I created my table with the following:-
Name (Text)
LoanAmt (Currency)
PeriodPaid (Text)
Repayments (Number)
DateFirstRep (Date/Time)
LoanYearNo (Number) - also primary key.
Then I entered some dummy data as above, then created my Query.
My query is as follows. It contains all the fields from the table, plus:
Field: [FirstRepayment]
Criteria: [LoanAmt]-([Repayments]-1)*[OtherPayments]
Field: [OtherPayments]
Criteria: Round([LoanAmt]/[Repayments],2)
Now this should work, but instead of showing me the results, it prompts me for these boxes and of course shows me nothing when I leave them blank.
Am I going about this in the wrong way ? Should I use the calculated fields in the table instead - if that's possible?
Any help would be appreciated, thanks.
I'm creating a database for loans of season tickets and I'm having problems with calculated fields in a query. The Database is based on a spreadsheet, which goes like this:
Name AmtofLoan PeriodLoanPaid NoOfRepayments FirstRepay OtherPaym DateofFirstPay LoanNo
Bloggs, Joe £1000 12/07 12 83.37 83.33 30/04/08 200801
Smith, John £500 01/08 12 41.74 41.66 31/05/08 200802
Jones, Peter £700 02/08 9 77.84 77.77 30/06/08 200803
Doe, John £1500 02/08 10 150.00 150.00 31/05/08 200804
Period is for financial year i.e. 12/07 would be March 2007. The Loan number is the year plus the ID.
The First Repayment and Other Payment fields are caluclated based on the No. of repayments. The formula of which is...
First Repayment: =AmtofLoan-((NoOfRepayments-1)*OtherPaym
OtherPaym: =ROUNDDOWN(AmtofLoan/NoOfRepayments,2)
This works fine for a spreadsheet, but recreating it in Access produces problems. First of all, I created my table with the following:-
Name (Text)
LoanAmt (Currency)
PeriodPaid (Text)
Repayments (Number)
DateFirstRep (Date/Time)
LoanYearNo (Number) - also primary key.
Then I entered some dummy data as above, then created my Query.
My query is as follows. It contains all the fields from the table, plus:
Field: [FirstRepayment]
Criteria: [LoanAmt]-([Repayments]-1)*[OtherPayments]
Field: [OtherPayments]
Criteria: Round([LoanAmt]/[Repayments],2)
Now this should work, but instead of showing me the results, it prompts me for these boxes and of course shows me nothing when I leave them blank.
Am I going about this in the wrong way ? Should I use the calculated fields in the table instead - if that's possible?
Any help would be appreciated, thanks.