Tom,
Here is the SQL I tried and it did not work:
I get the following error and there are no suggestions for the syntax
Join Expression Not Supported
SELECT DISTINCT dbo_tblLoads.LoadID, dbo_tblLoads.ShipName,
dbo_tblLoads.PickupDate, dbo_tblLoadDispatch.CarrierRef,
dbo_tblLoads.BillToRef, dbo_tblLoads.TotalWeight, dbo_tblLoads.Status,
dbo_tblLoads.SatStatus
FROM (dbo_tblLoadDispatch RIGHT JOIN dbo_tblLoads ON
dbo_tblLoadDispatch.LoadID = dbo_tblLoads.LoadID) LEFT JOIN
dbo_tblCheckCalls
ON CSTr(dbo_tblLoadDispatch.LoadID) = dbo_tblCheckCalls.LoadNumber
GROUP BY dbo_tblLoads.LoadID, dbo_tblLoads.ShipName,
dbo_tblLoads.PickupDate, dbo_tblLoadDispatch.CarrierRef,
dbo_tblLoads.BillToRef, dbo_tblLoads.TotalWeight, dbo_tblLoads.Status,
dbo_tblLoads.SatStatus, dbo_tblLoads.BillToID, dbo_tblLoads.InvoiceDate,
dbo_tblLoadDispatch.PayType
HAVING (((dbo_tblLoads.Status)<>"ARRIVED") AND
((dbo_tblLoads.SatStatus)=5)
AND ((dbo_tblLoads.BillToID) In (3549,3359)) AND
((dbo_tblLoads.InvoiceDate)
Is Null) AND ((dbo_tblLoadDispatch.PayType)="FLAT"))
ORDER BY dbo_tblLoads.LoadID;
Tom Ellison said:
Dear Skeske:
I don't know all the details of your situation. It seemed to me that
what I
suggested could be useful. Can you try it?
Tom Ellison
Microsoft Access MVP
skeske said:
So if I understand you correctly, my FROM statement might look like the
following:
FROM (dbo_tblLoadDispatch RIGHT JOIN dbo_tblLoads ON
dbo_tblLoadDispatch.LoadID = dbo_tblLoads.LoadID) RIGHT JOIN
dbo_tblCheckCalls ON dbo_tblLoadDispatch.LoadID =
CINT(dbo_tblCheckCalls.[LoadNumber])
Bear in the mind that LoadID and LoadNumber will be the same value.
For
example:
dbo_tblLoadDispatch.LoadID = 30686
dbo_tblCheckCalls.LoadNumber = 30686
The data type on the field throws me off.
:
Dear Skeske:
You could either convert the text values to a number (using CInt(),
CLng(),
etc.) or you could convert the numbers to text (CStr). There could be
some
important differences in how these work. For example 123 is not the
same
as
"123b" (where b represents a space or any non-digit). It may be that
the
CInt() version is best, but some testing is likely a best bet.
Tom Ellison
Microsoft Access MVP
Here is the Situation;
Table A with Field A, data type = Numeric, needs to join Table B
with
Field
B, data type = Text.
How do I change the data type on Field B to make the join?
Thanks