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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 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