Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
This is my code: strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" strConn = strConn & "Data Source=" & Application.ActiveWorkbook.FullName & ";" strConn = strConn & "Extended Properties='Excel 8.0;HDR=NO'" strSQL = "SELECT 'Apple' FROM [SHEET1$A1:A4] WHERE [SHEET1$B1:B4] = 'TOM & Co'" With Conn .CursorLocation = adUseClient 'default assumed not client .ConnectionString = strConn .Open End With Rs.Open strSQL, Conn 'Stopped here ......... I get : No value given for one or more required parameters I read somewhere that I must use HeaderRow (HDR=YES) inorder to use other SQL function, or else, I only get to use select. Is there way to get around this? I use A1:B4 (much larger in the real sheet) as a temp dump area, therefore, I really don't want to use hearderrow, since other record also go here. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pull data from one worksheet and place in a new worksheet | Excel Worksheet Functions | |||
Search one worksheet to pull data into another worksheet | Excel Worksheet Functions | |||
Pull data from various worksheet | Excel Worksheet Functions | |||
Using one worksheet to pull data from many | Excel Discussion (Misc queries) | |||
How do I pull data from a previous worksheet? | Excel Worksheet Functions |