Message "Query too complex"

Status
Not open for further replies.

Pettor

Board Regular
Joined
Aug 8, 2015
Messages
175
Hi All,

I am trying to combine two queries (PRO3 & PRO4) that will update a table (PRO_TBL) but I am receiving the message "Query too complex". Can someone figure out what it might be?


INSERT INTO PRO_TBL ( ID, MDATE )
SELECT PRO3.ID, PRO4.MDATE
FROM PRO3 INNER JOIN PRO4 ON PRO3.ID = PRO4.ID;

Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I think you are missing a table reference. Maybe try
INSERT INTO PRO_TBL ( ID, MDATE )
SELECT PRO3.ID, PRO4.MDATE
FROM PRO3, PRO4 INNER JOIN PRO4 ON PRO3.ID = PRO4.ID;
You should always test suggestions on copies of the tables or other objects.
 
Upvote 0
Thank you Micron,

I will test your suggestion but I have some doubts about the outcome. Most probably the problem occurs because in reality there are no tables "PRO3" & "PRO4". It is a mistake probably due to the MS Access graphical environment that creates the SQL code.
I have create a new thread describing the situation. Maybe in this way is more clear.

Thanks!
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,216,267
Messages
6,129,792
Members
449,535
Latest member
Piaskun

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top