The view displays correctly in SSMS but not in Access
SQL View not returning correct records

I created a simple view that returns data from 2 tables: a master table with the PK an Int, Identity Specification and the detail table with the FK an Int
The tables are Inter Joined PF to FK
When I display the view in Access it displays the data from 1 detail record for each of the linked detail records
The SQL statement appears exactly the same as the SQL resulting from an Access query linking the tables - the Acess query works correctly
SQL 2019 Express
2 answers
Sort by: Most helpful
-
-
Bob Vitter 181 Reputation points
2023-05-16T15:26:05.5433333+00:00 Sorry for the newbie question - I only use SQLServer as a backend to Access databases
In researching answers to the questions posted I discovered that I needed to include the PK for the many-side table
With that the view works correctly in Access