H
Heydan
I have a table that contains mileage logs. The Mileage table looks like
this:
ItemNumber (autonumber)
ItemDate (a date)
From (a location id - long integer)
To (a location id - long integer)
The second table contains locations:
LocationID (long integer)
LocationName (string)
I need to show the from and to locations for each trip. The following query
returns the error "Join expression not supported".
SELECT Mileage.ItemDate, Locations.LocationName AS [From],
Locations.LocationName AS [To]
FROM (Mileage INNER JOIN Locations ON Mileage.[From] =
Locations.LocationID) INNER JOIN Locations ON Mileage.[To] =
Locations.LocationID
I can't see anything wrong with this statement. Anyone have any ideas?
this:
ItemNumber (autonumber)
ItemDate (a date)
From (a location id - long integer)
To (a location id - long integer)
The second table contains locations:
LocationID (long integer)
LocationName (string)
I need to show the from and to locations for each trip. The following query
returns the error "Join expression not supported".
SELECT Mileage.ItemDate, Locations.LocationName AS [From],
Locations.LocationName AS [To]
FROM (Mileage INNER JOIN Locations ON Mileage.[From] =
Locations.LocationID) INNER JOIN Locations ON Mileage.[To] =
Locations.LocationID
I can't see anything wrong with this statement. Anyone have any ideas?