Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
How do I do a select from a excel sheet where the column header contain brackets? the actual name is [ID] ? I i can't see how to escape correctly. The code looks like: String strConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\test.xlsx;Extended Properties=Excel 12.0;"; String strSelect = "SELECT [ID] FROM [sheetname$]"; OleDbDataAdapter daMaster = new OleDbDataAdapter(strSelect, strConn); Regards Kim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
lookup using column headers and row headers | Excel Discussion (Misc queries) | |||
when are [ ] brackets used | Excel Worksheet Functions | |||
Hide Column Headers but not row (Headers) | Excel Programming | |||
help with brackets | Excel Discussion (Misc queries) | |||
=D6-E6 there are brackets? | Charts and Charting in Excel |