Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 27th, 2004, 10:46 AM
Authorized User
 
Join Date: Jun 2003
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection string problem

Hi all,

I have decided to attach a password to my access database, which obviously requires a connection string adjustment. However I have adjusted it as follows:

  Const pWord As String = "henry"

  strCn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\despatcher97.mdb; & _ Jet OLEDB:Database Password=" & pWord & ";"""

  Dim strSQL As String
  strSQL = "SELECT * FROM Users ORDER BY Name"

  Dim rst As New ADODB.Recordset
  rst.Open strSQL, strCn

But I am receiving this error.

Run-time error '-2147467259(80004005)':
Could not find installable ISAM

I have tried hunting around for MDAC driver updates etc. and I have installed them, but I still have the same problem.

Any suggestions would be greatly received.

Many thanks,

Paul
 
Old October 10th, 2004, 12:24 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try the following link for connection strings

http://www.connectionstrings.com/index.asp



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with SQL SERVER Connection String Non Linear BOOK: Beginning ASP 3.0 3 October 20th, 2005 12:35 AM
Problem with connection string Adam H-W Classic ASP Databases 3 August 12th, 2005 11:51 AM
Problem with the connection string?? budman Access ASP 2 March 29th, 2004 07:12 AM
connection string aadz5 ASP.NET 1.0 and 1.1 Basics 4 October 20th, 2003 08:43 AM
connection string problem mateenmohd SQL Server 2000 2 September 3rd, 2003 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.