ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel, ADO and row number (https://www.excelbanter.com/excel-programming/362802-excel-ado-row-number.html)

Sebho

Excel, ADO and row number
 
Hello,

i have to request an Excel Sheet,

so i have an oledbCommand : "SELECT * FROM [sheet1$]"
this is ok, it works

but i want just some lines (no all table) and i know her excel line number,
i would like to do anything so : "SELECT * FROM [sheet1$] WHERE row_num=3"

row_num does not exist, bus is there an "system field" (rownum, rowid,...)
who can do this ?


best regards,
--
Sebho

Ron de Bruin

Excel, ADO and row number
 
Hi Sebho

See this page
http://www.rondebruin.nl/accessexcel.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Sebho" wrote in message ...
Hello,

i have to request an Excel Sheet,

so i have an oledbCommand : "SELECT * FROM [sheet1$]"
this is ok, it works

but i want just some lines (no all table) and i know her excel line number,
i would like to do anything so : "SELECT * FROM [sheet1$] WHERE row_num=3"

row_num does not exist, bus is there an "system field" (rownum, rowid,...)
who can do this ?


best regards,
--
Sebho





All times are GMT +1. The time now is 07:21 AM.

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