ElcoyotldeAztlan
Registered User.
- Local time
- Today, 00:03
- Joined
- Jul 15, 2017
- Messages
- 43
Hello everyone
I'm try to combine two queries that do work fine when separated. I put the two together on one Query so that I can reduce the number of query processes when transferring data into another table (I want to only have to press the run button once not may)
I have on my database the following code
SELECT color.ColorID, Cardata_xlsx.[Color ]
FROM color INNER JOIN Cardata_xlsx ON color.ColorName = Cardata_xlsx.[Color ]
INSERT INTO MainTable (ColorID)
SELECT ColorID
From Query1;
Error message says
syntax error (missing operator) in query expression
color.ColorName = Cardata_xlsx.[Color ]
INSERT INTO MainTable (ColorID)
SELECT ColorID
From Query1;
any ideas
Thanks!
sidenote - Cardata_xlsx is just a name of one of my tables that I imported form excel I didnt bother to rename it
I'm try to combine two queries that do work fine when separated. I put the two together on one Query so that I can reduce the number of query processes when transferring data into another table (I want to only have to press the run button once not may)
I have on my database the following code
SELECT color.ColorID, Cardata_xlsx.[Color ]
FROM color INNER JOIN Cardata_xlsx ON color.ColorName = Cardata_xlsx.[Color ]
INSERT INTO MainTable (ColorID)
SELECT ColorID
From Query1;
Error message says
syntax error (missing operator) in query expression
color.ColorName = Cardata_xlsx.[Color ]
INSERT INTO MainTable (ColorID)
SELECT ColorID
From Query1;
any ideas
Thanks!
sidenote - Cardata_xlsx is just a name of one of my tables that I imported form excel I didnt bother to rename it