Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataReport errors with 'Unknown Error'

Status
Not open for further replies.

crownit

IS-IT--Management
Mar 8, 2004
29
0
0
CA
Here is the SQL Statment I am trying to execute. This statement runs fine in Access.

SELECT load.date, load.waybillnum, route.start, route.end, load.hrlyhauls, load.correctedvolume, load.addwork, route.riser, load.comments, driver.fname, driver.lname, load.wage, load.driverindex, (select unit from equipment where load.truckkey = equipment.equipkey) AS TruckUnit, (select unit from equipment where load.Trailer1Key = equipment.equipkey) AS TrailerUnit1, (select unit from equipment where load.Trailer2Key = equipment.equipkey) AS TrailerUnit2, route.rate, (route.rate*load.correctedvolume) AS RatedTotal, load.hourlyrate, (load.hourlyrate*load.addwork*load.hrlyhauls) as HourlyTotal, (HourlyTotal + RatedTotal) as HaulTotal FROM Route INNER JOIN (Driver INNER JOIN Load ON Driver.DriverKey=Load.DriverIndex) ON Route.RouteKey=Load.RouteIndex ORDER by load.date


Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top