I've been using MS Access 2010 for a while now and I have big problem. I'll attach a dummy database here for reference. It's simple, three tables: 2 for data and 1 to act as a junction for a many-to-many relationship. I have one query that I would like to be able to enter values. Lets say I enter the following:
+-------------+-------------+
| NameA | NameB |
+-------------+-------------+
| Frank | Bob |
| Frank | Harry |
| Tom | Harry |
+-------------+-------------+
The 2 data tables will end up with redundant entries. It's as if the query simply adds a new entry regardless of what is already in the tables. How do I fix this?
Thanks in advance.
Update: Per request here is the query code
SELECT Table1.NameA, Table2.NameB
FROM Table2
INNER
JOIN (Table1 INNER JOIN Table3 ON Table1.ID = Table3.IDA)
ON Table2.ID = Table3.IDB;
SELECT
query, not anINSERT
query. A select query will only return results, not add records. Are you trying to write a query that will return results without duplicates?