ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   access a column via a select statement (https://www.excelbanter.com/excel-programming/427036-access-column-via-select-statement.html)

NoSpamMan

access a column via a select statement
 
Hi,

I am trying to access a excel spreadsheet using the OleDB.

I have been able to open the worksheet up, but it would seem that I can only
perform 'select * from [sheet1$]'

I want to be able to select only a small number of columns from the sheet,
but when i try 'select A,B from [sheet1$]' it causes an error.

Is there a specific syntax to access Column A/B in a select statement ?

Thanks



All times are GMT +1. The time now is 11:59 PM.

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