Nov 30 2023 02:02 PM
I have a query (executed from a macro) as follows:
INSERT INTO PatronsWork (PatronID)
SELECT DISTINCT EventAttendance.PatronID
FROM EventAttendance;
I get nothing inserted. If I remove the first line in the query and switch to Datasheet view (executing the SELECT statement only), the results are exactly as expected. So, the SELECT part is returning a non-empty set of values but nothing is inserted. PatronsWork is an existing table having a PatronID column. Can anyone show me my mistake here? Many thanks if so.
Nov 30 2023 02:16 PM
Here is a list of reasons queries are non-updateable. Yours is on the list.
Nov 30 2023 10:02 PM
Dec 01 2023 02:26 AM
Dec 01 2023 01:34 PM
Dec 01 2023 05:23 PM - edited Dec 01 2023 05:24 PM
please provide some DDL(Data Definition Language) or some data and your expected result.
Both sqls you metioned all work well on my side.
Dec 02 2023 09:02 AM
Dec 02 2023 11:06 AM
Dec 02 2023 11:37 AM