LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default DB Connection error

Hi,
I am using one of the tips to pull data from the excell sheet into an
access table (acutually multiple tables) However, I keep getting an
error from by openDatabase command. Any Ideas?
Here is the Code:

Dim wk As Workspace
Dim dbConn As Database
Dim rs As Recordset
Dim r As Long
Dim iCID() As Integer
Dim iCT() As Integer
' Can also use system dns "tfTestDB", but it does not work either
Set wk = CreateWorkspace("", "admin", "")

----Problem code vvvvv
Set dbConn = wk.OpenDatabase("C:\Documents and Settings\Josh Peltier\My
Documents\TerraFirma\db\test\testData.mdb"

Any help would be great.

Josh


---
Message posted from http://www.ExcelForum.com/

 
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
always recheck data connection library for latest connection strin FurmanGG Excel Discussion (Misc queries) 0 September 14th 07 04:48 PM
The underlying connection was closed - Error Message Sandeep Excel Discussion (Misc queries) 1 August 3rd 07 11:02 AM
Connection error Tiffany Excel Discussion (Misc queries) 0 May 2nd 06 03:53 AM
Connection error to network drive dmlw96 Excel Discussion (Misc queries) 0 September 30th 05 08:24 PM
XL - Oracle connection Error parthi4u Excel Discussion (Misc queries) 0 September 14th 05 08:45 PM


All times are GMT +1. The time now is 09:41 AM.

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"