R
Robin Hickman
I am using Access 97 and am a database novice. I'm a professional
photographer and have put together a database that stores all the data
relative to each client. I'm sure it is very simple to get the report I
want, but I can't figure it out.
The main form ("Client") displays the name, address and phone, etc., for
each of my photography clients. this data comes from the main table
(also "Client".) (I learned about naming conventions after getting well
into this project so the names are not frmClient and tblClient like they
should be) The form "Client" also contains a subform that displays all
of the currently displayed client's money transactions. the subform is
called Client_Account and it gets it's data from a table also called
Client_Account that is linked to the Client table. Client_Account has
the following fields:
Client_Account_ID (The primary key (autonumber))
Client_ID (linked to the Client_ID field in the main Client table)
Transaction_Date (date field)
Transaction_Type (text field)
TRansaction_Description (text field)
Client_Debit (A number field, any charges incurred are entered here)
Client_Credit (A number field, payments or other credits entered here)
The Client_Account subform displays all these fields in a continuous
forms type view (except the first two key type fields). At the bottom is
a calculated field that uses the formula
=NZ(Sum([Client_Debit]))-NZ(Sum([Client_Credit]))
to determine how much money the client owes. (Many clients make a
deposit when they place an order, so there is a balance on their account
due on delivery. Others pay in full at the time of order so there is no
balance.) If the charges and payments that are linked to any particular
client are equal, then the sume of Client_Debit and Client_Credit are
equal and this field displays zeros, otherwise it displays the total
amount owed by the client. this subform works perfectly.
Now for the reports I want to create:
I want a report that only shows the clients that owe me money. (Actually
I want two reports like this, one only showing the client name and total
amount owed with a total of the money owed at the bottom, and one that
shows all the clients that owe money and under each client a list of all
of that client's transactions.
Like I said, this is probably simple, but I'm better at creating images
than databases, so I appreciate any help. Remember, I really know very
little about this so don't assume that I know much of anything in your
reply.
Thanks again!!!
Robin
photographer and have put together a database that stores all the data
relative to each client. I'm sure it is very simple to get the report I
want, but I can't figure it out.
The main form ("Client") displays the name, address and phone, etc., for
each of my photography clients. this data comes from the main table
(also "Client".) (I learned about naming conventions after getting well
into this project so the names are not frmClient and tblClient like they
should be) The form "Client" also contains a subform that displays all
of the currently displayed client's money transactions. the subform is
called Client_Account and it gets it's data from a table also called
Client_Account that is linked to the Client table. Client_Account has
the following fields:
Client_Account_ID (The primary key (autonumber))
Client_ID (linked to the Client_ID field in the main Client table)
Transaction_Date (date field)
Transaction_Type (text field)
TRansaction_Description (text field)
Client_Debit (A number field, any charges incurred are entered here)
Client_Credit (A number field, payments or other credits entered here)
The Client_Account subform displays all these fields in a continuous
forms type view (except the first two key type fields). At the bottom is
a calculated field that uses the formula
=NZ(Sum([Client_Debit]))-NZ(Sum([Client_Credit]))
to determine how much money the client owes. (Many clients make a
deposit when they place an order, so there is a balance on their account
due on delivery. Others pay in full at the time of order so there is no
balance.) If the charges and payments that are linked to any particular
client are equal, then the sume of Client_Debit and Client_Credit are
equal and this field displays zeros, otherwise it displays the total
amount owed by the client. this subform works perfectly.
Now for the reports I want to create:
I want a report that only shows the clients that owe me money. (Actually
I want two reports like this, one only showing the client name and total
amount owed with a total of the money owed at the bottom, and one that
shows all the clients that owe money and under each client a list of all
of that client's transactions.
Like I said, this is probably simple, but I'm better at creating images
than databases, so I appreciate any help. Remember, I really know very
little about this so don't assume that I know much of anything in your
reply.
Thanks again!!!
Robin