Roger said:
Thanks ... I have tried a query but get crazy results ...
I have 3 tables, one for each of customer, costs and payments. The
costs and payment transactions in the respect tables are linked to
customer via the customer ID. no problems.
With the query, if i have customer and costs, i can list all costs
for the particular customer no problems, but as soon as i link
payments in there to list payments as well i get datarecords repeated
over and over again! what am I doing wrong ?
thanks for your help
roger
May I suggest you forget about having separate Tables for costs and for
payments. My guess is they contain the same sort of data anyway -
Date, Amount, Reference etc. If you use one Table for these
Transactions, you just need an extra Field to say what kind of
transaction it is. This will then cope with other Transaction types
you have probably not yet thought of!
You will then have a one-to-many relationship between the Customer
Table and the Transaction Table and a very simple Form/Subform setup.
This should use an Autonumber as the unique indexed primary key in the
Customer Table, linked to a Long Integer foriegn key Field in the
transactions table with referential integrity enabled. You will need
to keep these invisible to users, of course.
hth
Hugh