Ok the three tables involved are
TblBikes containing information on the quadBikes in stock
TblHires containing hire information with the forign key BikeID
TblRepairs containing bike repair information with the forign key BikeID
What i want to do is group all by BikeID and calculate the
BreakEvenPrice = [tblBikes.CostOfBike]+SUM([tblBikes.CostOfBike])-SUM([tblHires.HireCost])
The problem Is as There is a one to many relationship between tblBikes and the other tables its confused me. So help would be greatly appreciated.
Thanks, Sci
TblBikes containing information on the quadBikes in stock
TblHires containing hire information with the forign key BikeID
TblRepairs containing bike repair information with the forign key BikeID
What i want to do is group all by BikeID and calculate the
BreakEvenPrice = [tblBikes.CostOfBike]+SUM([tblBikes.CostOfBike])-SUM([tblHires.HireCost])
The problem Is as There is a one to many relationship between tblBikes and the other tables its confused me. So help would be greatly appreciated.
Thanks, Sci