Hi,
Okay, this helps. So the basic process is to create unbound text
fields and set their Control Sources to the appropriate formulae.
For a control named [txtWTR 08 Balance]:
=[WTR 08 Fee]-[WTR 08 Payments]
For a control named [txtSMR 08 Balance]:
=[SMR 08 Fee]-[SMR 08 Payments]
For a control named [txtWTR 09 Balance]:
=[WTR 09 Fee]-[WTR 09 Payments]
And finally for a control named [txtFinal Balance]:
=[txtWTR 08 Balance]+[txtSMR 08 Balance]+[txtWTR 09 Balance]
Which is what I originally suggested. Are you saying that that is not
working?
On related issue, you really need to redesign your database so that you
do not have to make changes for every new camp session. This involves
separating out the data into several tables so that each table holds only one
type of information such as people, camping sessions and ledger (fee/payment)
information. Something like this:
tblCampers
Camper_ID (autonumber)
Last_Name
First_Name
Street_Address
City
State_Code
Postal_Code
Country
Telephone
etc.
tblCamp_Sessions
Camp_Session_ID (maybe autonumber)
Camp_Session_Description
Start_Date
End_Date
Camp_Fee
Maximum_Campers
etc.
tblLedger
Ledger_ID (autonumber)
Camper_ID (related to the Camper_ID in tblCampers)
Camp_Session_ID (related to Camp_Session_ID in tblCamp_Sessions)
Transaction_Date
Transaction_Type_Code (maybe F for Fee or P for Payment, N for (NSF)
Non-sufficient funds [bounced] checks; could have multiple fee codes such as
CF for Camping Fee and NF for NSF checks; may want a separate table that
holds possible codes)
Transaction_Amount (positive for fees, negative for payments)
other information such as check number, notes, etc.
Then you can set up your forms and reports in such a way that they will
not need modification each camp session. For forms you would have a main
form for entering campers. On the form you would have a ledger subform for
entering the fees and payments. Similarily on your report, the main report
would have the person's main information and a subreport to display the
ledger transactions and balances.
If you are using Access 2003 or earlier search for "designing a
database", including the quotes, in Access's online help. If Access 2007, go
to help an choose the "Database Design" item. Also do a search for "subform"
and "subreport, quotes not needed. <
http://www.mvps.org/access/> is a good
site for resources to help learn about Access. Also,
<
http://www.accessmvp.com/JConrad/accessjunkie/resources.html> looks to be a
good Access database design resource.
Hope that helps,
Clifford Bass
Ashes09 said:
I am using a table as the source, not a Query.
Basically, we run youth camps, and several campers have outstanding balances
from the last three camps. I want to do a statement per individual showing
their balance from the last three camps.
The following are fields I have in the table.
Last Name
First Name
WTR 08 Fee
WTR 08 Payments
SMR 08 Fee
SMR 08 Payments
WTR 09 Fee
WTR 09 Payments
On the statement I want to add a calc field that shows the balance owing for
each of the three camps, then a TOTAL that adds the three balances.