I am relatively new to Access, and have only made a few databases so far.
The one I am stuck on currently involves 2 tables via an ODBC link.
There is a unique field in both tables (ID) however it is giving me an error that the field is found in both tables. When looking at the data in the tables, there are duplicate IDs which I believe is causing the error.
I have attempted to remove the duplicates using DISTINCT which works, however it sorts from the oldest first.
Expand|Select|Wrap|Line Numbers
- SELECT DISTINCT Table1.ID
- FROM Table1
- ORDER BY Table1.ID DESC;
I believe I need to find a way of sorting descending first, and then using the DISTINCT or GROUP BY function after. I keep getting a syntax error when attempting this.
Any help would be greatly appreciated.
Regards,
Gareth