J
JoD
Using Access 2007
The format of the query is:
INSERT INTO tmpTable ( col1, col2 , col3 , col4, col5, col6, col7 )
SELECT CJ.col1, CJ.col2, CJ.col3, ER.col2, ER.col5, "val1", "val2"
FROM tbl1 AS CJ INNER JOIN tbl2 AS ER
ON ( (CJ.col3=ER.col1) AND
(ER.col6 = ("val3") AND ER.col1=[Enter number:]));
The first variation used a WHERE clause:
WHERE (ER.col6 = "val3" AND ER.col1=[Enter number:])
Either way, the query should return x rows to insert; instead it returns 2x
rows, with a duplicate for each row.
TIA for any assistance
The format of the query is:
INSERT INTO tmpTable ( col1, col2 , col3 , col4, col5, col6, col7 )
SELECT CJ.col1, CJ.col2, CJ.col3, ER.col2, ER.col5, "val1", "val2"
FROM tbl1 AS CJ INNER JOIN tbl2 AS ER
ON ( (CJ.col3=ER.col1) AND
(ER.col6 = ("val3") AND ER.col1=[Enter number:]));
The first variation used a WHERE clause:
WHERE (ER.col6 = "val3" AND ER.col1=[Enter number:])
Either way, the query should return x rows to insert; instead it returns 2x
rows, with a duplicate for each row.
TIA for any assistance