J
Jonathan Haddad
I've taken on the unfortunate task of updating an existing query to
include another table in a left join. unfortunately, I'm getting this
error:
Join Expression Not supported
When I try to run the query with the Left Join section in there. I'm
using Access 97 ( I know... blah ). I remove the join and it works.
The fields are correct, ive played with this thing for a while now with
absolutely no success. Any ideas?
SELECT distinctrow OrderMaster.OMSchoolID,
OrderMaster.OMTeacherID, OrderMaster.Date,
OrderMaster.Date, OrderDetail.ODOrderID, OrderDetail.ODShowID,
Schools.Name, Schools.Address1, Schools.Address2,
Schools.City, Schools.State, Schools.Zip,
[FName] & " " & [LName] AS TName,
Teachers.FName,
Teachers.LName, Shows.Date, Shows.Time, Shows.Desc,
OrderDetail.Status,
OrderStatusCodes.Desc,
OrderStatusCodes.Inventory,
OrderStatusCodes.Due,
OrderDetail.Qty, OrderDetail.Type,
SeatTypes.Desc, SeatTypes.Normal, SeatTypes.Due,
Shows.Price, [SeatTypes].[Due]*[OrderStatusCodes].[Due] AS Mult,
[Qty]*[Price]*[Mult] AS Expr1, [Expr1]+[Fees]*[Mult] AS Expr3,
OrderDetail.Date,
OrderDetail.[Study Guides], OrderDetail.Fees, Schools.Phone1,
OrderDetail.Workshops
FROM
Teachers, Schools, OrderMaster, Shows, SeatTypes,
OrderStatusCodes, OrderDetail
LEFT JOIN AR ON OrderDetail.ODShowID = AR.ARShowID
AND OrderDetail.ODOrderID = AR.AROrderID
WHERE
OrderMaster.Date >= [Begin Date?] And OrderMaster.Date <= [End Date?]
AND SeatTypes.StypeID = OrderDetail.Type AND
Shows.ShowID = OrderDetail.ODShowID AND
OrderMaster.OrderID = OrderDetail.ODOrderID AND
Schools.SchoolID = OrderMaster.OMSchoolID AND
Teachers.TeacherID = OrderMaster.OMTeacherID AND
OrderStatusCodes.StatusID = OrderDetail.Status
ORDER BY OrderDetail.ODOrderID DESC , Shows.Date, Shows.Time,
Shows.Desc, OrderDetail.Type;
Jon
include another table in a left join. unfortunately, I'm getting this
error:
Join Expression Not supported
When I try to run the query with the Left Join section in there. I'm
using Access 97 ( I know... blah ). I remove the join and it works.
The fields are correct, ive played with this thing for a while now with
absolutely no success. Any ideas?
SELECT distinctrow OrderMaster.OMSchoolID,
OrderMaster.OMTeacherID, OrderMaster.Date,
OrderMaster.Date, OrderDetail.ODOrderID, OrderDetail.ODShowID,
Schools.Name, Schools.Address1, Schools.Address2,
Schools.City, Schools.State, Schools.Zip,
[FName] & " " & [LName] AS TName,
Teachers.FName,
Teachers.LName, Shows.Date, Shows.Time, Shows.Desc,
OrderDetail.Status,
OrderStatusCodes.Desc,
OrderStatusCodes.Inventory,
OrderStatusCodes.Due,
OrderDetail.Qty, OrderDetail.Type,
SeatTypes.Desc, SeatTypes.Normal, SeatTypes.Due,
Shows.Price, [SeatTypes].[Due]*[OrderStatusCodes].[Due] AS Mult,
[Qty]*[Price]*[Mult] AS Expr1, [Expr1]+[Fees]*[Mult] AS Expr3,
OrderDetail.Date,
OrderDetail.[Study Guides], OrderDetail.Fees, Schools.Phone1,
OrderDetail.Workshops
FROM
Teachers, Schools, OrderMaster, Shows, SeatTypes,
OrderStatusCodes, OrderDetail
LEFT JOIN AR ON OrderDetail.ODShowID = AR.ARShowID
AND OrderDetail.ODOrderID = AR.AROrderID
WHERE
OrderMaster.Date >= [Begin Date?] And OrderMaster.Date <= [End Date?]
AND SeatTypes.StypeID = OrderDetail.Type AND
Shows.ShowID = OrderDetail.ODShowID AND
OrderMaster.OrderID = OrderDetail.ODOrderID AND
Schools.SchoolID = OrderMaster.OMSchoolID AND
Teachers.TeacherID = OrderMaster.OMTeacherID AND
OrderStatusCodes.StatusID = OrderDetail.Status
ORDER BY OrderDetail.ODOrderID DESC , Shows.Date, Shows.Time,
Shows.Desc, OrderDetail.Type;
Jon