
01-23-2006, 01:13 PM
|
 |
Martian In Disguise
Retired Moderator * Guru *
|
|
Join Date: May 2003
Location: Minneapolis, MN
Posts: 9,566
|
|
You can't alias the the table defined by the INSERT INTO clause and you haven't included the field list that will be inserted into.
Try:
Code:
INSERT INTO Archive (Transaction_No, KEY_ID) SELECT b.Transaction_No, b.KEY_ID FROM Hardware b WHERE b.Transaction_No = "10024"
If you were to build the query using the QueryBuilder and then click on the "SQL" view of the query, then you would see how Access would build the query string.
|
__________________
The only stupid question is the one that goes un-asked.
|