J
Jean-Marie
Hello guys.
I am building a database to manage a fleet of transport
vehicles. I have among others these tables
tblVehicles (LicensePlate, AcqDate, HorsePower, MotorType)
tblRevenue (IDRevenue, DateRev, AmountRev, VehicleRev,
DriverRev, CommentRev)
tblExpenses (IDExpenses, DateExp, AmountExp,
CostCenterExp, CommentExp)
IDRevenue and IDExpense are AutoNumber.
Vehicles are grouped in Pools under the supervision of a
lead driver
I need to build many summary reports to display these
information
Pools
Vehicles
Weeks Revenue Expenses
Week1 Rev1 Exp1
Week2 Rev2 Exp2
Weekn Revn Expn
Total Total(Rev) Total(Exp)
I can build a Union query between tblRevenue and
tblExpense to retrieve the following: Pools, Vehicles,
Weeks, Amount, Type (Revenue or Expense)
Then build a crosstab query on the result to get theses
fields: Pools, Vehicles, Weeks, Revenue, Expenses.
Finally build a report based on the crosstab query.
My problem is that I am unable to calculate the totals
for Revenue and Expenses. I tried something like Sum
([Revenue]) but it won't work.
Hope I have provided enough clarity in this.
My system is Access 2000 and Win XP Pro
Can someone help me with this? Or put me on a better
track?
Jean-Marie
Douala, Cameroon.
I am building a database to manage a fleet of transport
vehicles. I have among others these tables
tblVehicles (LicensePlate, AcqDate, HorsePower, MotorType)
tblRevenue (IDRevenue, DateRev, AmountRev, VehicleRev,
DriverRev, CommentRev)
tblExpenses (IDExpenses, DateExp, AmountExp,
CostCenterExp, CommentExp)
IDRevenue and IDExpense are AutoNumber.
Vehicles are grouped in Pools under the supervision of a
lead driver
I need to build many summary reports to display these
information
Pools
Vehicles
Weeks Revenue Expenses
Week1 Rev1 Exp1
Week2 Rev2 Exp2
Weekn Revn Expn
Total Total(Rev) Total(Exp)
I can build a Union query between tblRevenue and
tblExpense to retrieve the following: Pools, Vehicles,
Weeks, Amount, Type (Revenue or Expense)
Then build a crosstab query on the result to get theses
fields: Pools, Vehicles, Weeks, Revenue, Expenses.
Finally build a report based on the crosstab query.
My problem is that I am unable to calculate the totals
for Revenue and Expenses. I tried something like Sum
([Revenue]) but it won't work.
Hope I have provided enough clarity in this.
My system is Access 2000 and Win XP Pro
Can someone help me with this? Or put me on a better
track?
Jean-Marie
Douala, Cameroon.