LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default OpenRecordset

Fred,
What do you mean "my database is not Access" ? You first post contained the
line:
Set dbsNorthwind = wrkJet.OpenDatabase("Northwind.mdb")

NickHK

"fred" wrote in message
...
TK, my database is not Access and is not a single file. In fact it is a
client server application (U/SQL) that has a client ODBC driver. So you

see
I cannot fully qualify the path because there is no path as such.

Obviously it works from within the Microsoft Query with just the string
"ODBC;DSN=TIMS.udd" so I hope I can connect a Recordset using this same
information?

Regards,
Fred



"TK" wrote in message
...
Fred

help me out here

I said

'You should fully quality the path to your file

Dim db_Name As String

'// this is where Access lives on this computer
db_Name = ("C:\Program Files\Microsoft Visual Studio\VB98\NWind.mdb")
'// where does it live on yours ( )

tried your routine by setting the DB_CONNECT_STRING to

"ODBC;DSN=TIMS.udd"
but it doesn't connect.


does that look anything like the example!
lets get connected then we will work on th rs
TK





 
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
Newbie Q: OpenRecordset from Excel Vinicio Ascone Excel Programming 2 October 14th 04 09:05 AM


All times are GMT +1. The time now is 07:48 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"