data control ACCESS passwords

Posted on 1999-01-04
Last Modified: 2010-05-03
Is there a way to enter an ACCESS database password in a data control object on a VB form?  If so, how do I do it? It seems like there should be a simple way to put it in the properties someplace but I can't find it. I'm using ACCESS 97 and VB 5.0.   --BOB
Question by:rafox
  • 2
  • 2

Accepted Solution

MikeP090797 earned 200 total points
ID: 1453835
Use the Connect property ";pwd=pass"

Author Comment

ID: 1453836
Connect gives me a selection of database type.  Access is already selected.  Do I add your solution to Access to give me 'Access;pwd=password' or is there something I'm missing?  When I do this, I get an error 3170 saying 'couldn't find installable ISAM'. The ;pwd=password has always worked well for me with the Set db=OpenDataBase.....("databasename",False,False,";pwd=password").


Expert Comment

ID: 1453837
For Access database you can ommit the type, just use ";pwd=pass"

Author Comment

ID: 1453838
Thanks, MikeP.  It worked and saved me a lot of re-programming.


Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question