Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
| Search | Today's Posts | Mark Forums Read
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases 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 August 26th, 2005, 01:47 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot open database with password

Greetings to all.

I have a problem opening an access database which has password. The goes like this..

  Set g_data.con = New ADODB.Connection
  g_data.con.Provider = "Microsoft.Jet.OLEDB.4.0"
  g_data.con.Open "Data\test.mdb, "pwd"

where "pwd" is my password.

I get the following error..
"Cannot start your application. The workgroup information file is missing or opened by another user."

I thought I made a mistake by not giving the user name and hence I tried using
g_data.con.Open "Data\test.mdb, "admin", "pwd"

But I still get the same error.

Don't know where I am going wrong.

Need help.

- Sai







Similar Threads
Thread Thread Starter Forum Replies Last Post
how i encrypt password and store it into database? qiux General .NET 2 March 9th, 2008 10:26 PM
open password for excel files in VBscript lambin VB Databases Basics 0 January 24th, 2008 05:05 AM
Can Database set password Jane SQL Server 2000 3 April 5th, 2006 06:07 PM
Attempted to open a database that is already open person747 Access 10 September 3rd, 2004 04:31 PM





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