PDA

View Full Version : [SOLVED:] ADO - Issue in Excel



Kaizer
03-15-2016, 09:09 AM
Hey, I'm trying to union multiple ranges having the same structure using ADO - SQL. Just tested uniting two ranges and noticed that it doesn't pick all the lines. Identical lines that have identical values are not passed into the recordset. However when I select values from a single range all the lines are picked. Have you had similar case and what could be the workaround?

Aflatoon
03-16-2016, 01:42 AM
Use UNION ALL not just UNION.

Kaizer
03-16-2016, 03:14 AM
Thanks, Aflatoon. It worked.