Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection string issue with MS access
#3
Solved: 12 Years, 10 Months, 3 Weeks ago
you should create a object for "adodb.connection" not "Odbc.connection"
anyways following code should solve your problem..

Code:
Set conn = CreateObject("adodb.connection")
Set rec = CreateObject("adodb.recordset")

conn.Provider = "microsoft.jet.oledb.4.0"
conn.Open "specify path of your access database file here"

rec.Open "specify your query here", conn
Reply


Messages In This Thread
RE: Connection string issue with MS access - by pavansri - 11-20-2009, 12:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Connection String for Oracle robertosalemi 6 13,306 01-15-2016, 04:51 PM
Last Post: robertosalemi
  DB2 Connect connection with IE 11 SRP 1 2,996 12-18-2015, 12:41 PM
Last Post: vinod123
  IBM DB2 connection with VB script bmurali 2 11,633 12-18-2015, 12:38 PM
Last Post: vinod123
  Connection with HP ALM hachem 0 2,933 02-26-2015, 04:36 PM
Last Post: hachem
  “Cannot connect to 8822 (connection timed out)" Ikbal 0 2,456 12-08-2014, 11:38 PM
Last Post: Ikbal

Forum Jump:


Users browsing this thread: 1 Guest(s)