Hi
I am trying to write a query in Access that will work for several different tables. The SQL code appears below:
SELECT [x].Table, [x].Field_seq, [x].Field_name, [x].Field_type, [y].Field_type
FROM x INNER JOIN y ON ([x].Field_name = [y].Field_name) AND ([x].Table = [y].Table)
WHERE ((([y].Field_type)<>[x].[Field_type]))
ORDER BY [x].Table, [x].Field_seq;
Where you see x and y are the names of the tables. Ideally, when attempting to run the query, you will be prompted to choose the name of one of the tables from the database. Alternatively, it could just prompt for a name and the user will have to know what the name of the table is and enter this.
I would be happy to try doing this with VBA (I have used Excel VBA quite a bit but never Access) but any solutions or suggestions would be gratefully recieved. Thanks a lot.
I am trying to write a query in Access that will work for several different tables. The SQL code appears below:
SELECT [x].Table, [x].Field_seq, [x].Field_name, [x].Field_type, [y].Field_type
FROM x INNER JOIN y ON ([x].Field_name = [y].Field_name) AND ([x].Table = [y].Table)
WHERE ((([y].Field_type)<>[x].[Field_type]))
ORDER BY [x].Table, [x].Field_seq;
Where you see x and y are the names of the tables. Ideally, when attempting to run the query, you will be prompted to choose the name of one of the tables from the database. Alternatively, it could just prompt for a name and the user will have to know what the name of the table is and enter this.
I would be happy to try doing this with VBA (I have used Excel VBA quite a bit but never Access) but any solutions or suggestions would be gratefully recieved. Thanks a lot.