ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Microsoft Query (https://www.excelbanter.com/excel-worksheet-functions/32874-microsoft-query.html)

VNCNTJ

Microsoft Query
 
I'm trying to use Microsoft Query with Excel worksheets.
"tCustomers" is defined in the workbook.

When I insert this sql statement

SELECT tCustomers.FirstName, tCustomers.LastName
FROM `C:\Documents and Settings\whoever`.`PMANT1\My
Documents\Data`.tCustomers tCustomers

I get the following...

Syntax error in From clause

Eddie O

just a guess... it looks like your single quotes are strange... should you
have '.' between whoever and PMANT1?

"VNCNTJ" wrote:

I'm trying to use Microsoft Query with Excel worksheets.
"tCustomers" is defined in the workbook.

When I insert this sql statement

SELECT tCustomers.FirstName, tCustomers.LastName
FROM `C:\Documents and Settings\whoever`.`PMANT1\My
Documents\Data`.tCustomers tCustomers

I get the following...

Syntax error in From clause



All times are GMT +1. The time now is 03:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com