F
Fakhruddin Zavery
Hello,
I have 2 tables which are on a One to Many Relationship amongst them (Master
Detail). The 2 tables are for Trips that a particular Truck would make and
TripExpenses Table which would hold any expenses related to any particular
trip.i.e Allowances, Fuel etc
The structures of the 2 tables is as follows
Trip (Date [PK], TripId [PK], TruckID, FareAgreed etc etc
TripExpenses (Date [PK], TripID [PK], IncExpID [PK], Amount etc etc
Now I need a report that would give me a detail of every trip made within a
particular month with all the related expenses that the particular trip
incurred.
The aim being that at the end of the report I can get totals of Total
FareAgreed (sum) less the Total Expenses (sum) and get a figure which would
show how much did one make in a particular month.
Right now if I do a report I get multiple lines from the Trip Table in
relation to every expense line that the trip incurred making it difficult
for me to work out the totals.
All the help will be appreciated
Thanks and Regards
I have 2 tables which are on a One to Many Relationship amongst them (Master
Detail). The 2 tables are for Trips that a particular Truck would make and
TripExpenses Table which would hold any expenses related to any particular
trip.i.e Allowances, Fuel etc
The structures of the 2 tables is as follows
Trip (Date [PK], TripId [PK], TruckID, FareAgreed etc etc
TripExpenses (Date [PK], TripID [PK], IncExpID [PK], Amount etc etc
Now I need a report that would give me a detail of every trip made within a
particular month with all the related expenses that the particular trip
incurred.
The aim being that at the end of the report I can get totals of Total
FareAgreed (sum) less the Total Expenses (sum) and get a figure which would
show how much did one make in a particular month.
Right now if I do a report I get multiple lines from the Trip Table in
relation to every expense line that the trip incurred making it difficult
for me to work out the totals.
All the help will be appreciated
Thanks and Regards