Hi,
I created an ODBC connection to an Excel file within the Pivot Table wizard
and then I modified the SQL statement in MS Query. Here is the SQL
This is a union query to 4 sheets in the same Excel file. Each range
contained only 2200 records, but that is not the point. And as you can see
there were quite a number of fields.
SELECT Customer, `Company Name`, Address, City, Region, `Postal Code`,
Country, Salesperson, `Order ID`, `Order Date`, `Required Date`, `Shipped
Date`, `Company Name1`, Product, `Product Name`, `Unit Price`, Quantity,
Discount, `Extended Price`, Freight
FROM East
UNION
SELECT Customer, `Company Name`, Address, City, Region, `Postal Code`,
Country, Salesperson, `Order ID`, `Order Date`, `Required Date`, `Shipped
Date`, `Company Name1`, Product, `Product Name`, `Unit Price`, Quantity,
Discount, `Extended Price`, Freight
FROM West
UNION
SELECT Customer, `Company Name`, Address, City, Region, `Postal Code`,
Country, Salesperson, `Order ID`, `Order Date`, `Required Date`, `Shipped
Date`, `Company Name1`, Product, `Product Name`, `Unit Price`, Quantity,
Discount, `Extended Price`, Freight
FROM North
UNION
SELECT Customer, `Company Name`, Address, City, Region, `Postal Code`,
Country, Salesperson, `Order ID`, `Order Date`, `Required Date`, `Shipped
Date`, `Company Name1`, Product, `Product Name`, `Unit Price`, Quantity,
Discount, `Extended Price`, Freight
FROM South
If this helps, please click yes.