Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 2D array to recordset.


I am sourcing data from a closed workbook using ADO.

dbConnStr = "DRIVER={Microsoft Excel Driver (*.xls)};ReadOnly=1;DBQ="
SourceFile
Set dbConn = New ADODB.Connection

dbConn.Open dbConnStr
SourceRange = "MFTP_Clients"
Set rs = dbConnection.Execute("[" & SourceRange & "]")

MFTP_Clients refers to a two-column named range on a separate workshee
- A1:B200.

I am getting an error message when setting to the recordset.
Can anyone help?

CIA,
struct

--
Struct
-----------------------------------------------------------------------
Structa's Profile: http://www.excelforum.com/member.php...fo&userid=2481
View this thread: http://www.excelforum.com/showthread.php?threadid=38370

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy an array into an ADO recordset? quartz[_2_] Excel Programming 3 January 4th 06 08:10 AM
Selection or Recordset to Array Witek[_2_] Excel Programming 1 April 23rd 05 07:25 PM
Recordset Filter by Array Kou Vang[_2_] Excel Programming 0 February 1st 05 04:31 PM
Passing an array or recordset to a stored procedure Paul Robinson Excel Programming 1 December 2nd 04 05:15 AM
Copy Recordset into array? Andrew_blue Excel Programming 2 May 6th 04 07:23 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"