I want to run a recordset based on an unmatched query to find new Routes in a bus timetable not yet entered in a master Routenames table.
This is because the actual route names do not appear in the timetable, only a route number (Route) and a destination code (Code). When browsing the timetable, the names are found only by looking up the code in the Routenames table.
The Timetable table is in a different database to the Routenames table.
This is easy when the two tables are in the one database using the standard unmatched query wizard in MSAccess to create the JOIN code. But in this case they are in two different databases.
The GROUP is used to only show the new route once as it might appear many times in a new timetable.
Problem is how do I refer to tables in two different databases in the one query?
I can do it with 2 databases when inserting INTO a table with IN but this does not seem to work in the above case.
Example of Unmatched query with the 2 tables in 1 database:-
This is because the actual route names do not appear in the timetable, only a route number (Route) and a destination code (Code). When browsing the timetable, the names are found only by looking up the code in the Routenames table.
The Timetable table is in a different database to the Routenames table.
This is easy when the two tables are in the one database using the standard unmatched query wizard in MSAccess to create the JOIN code. But in this case they are in two different databases.
The GROUP is used to only show the new route once as it might appear many times in a new timetable.
Problem is how do I refer to tables in two different databases in the one query?
I can do it with 2 databases when inserting INTO a table with IN but this does not seem to work in the above case.
Example of Unmatched query with the 2 tables in 1 database:-
Code:
SELECT Timetable.Route, Timetable.Destination
FROM Timetable LEFT JOIN RouteNames ON Timetable.Code = RouteNames.Destination
GROUP BY Timetable.Route, Timetable.Code, RouteNames.Destination
HAVING (((RouteNames.Destination) Is Null));