Solved

Reading a .mdb file with VB6

Posted on 1999-01-03
1
571 Views
Last Modified: 2012-06-27
How can I read a simple .mdb file with VB6 that is password protected. All user permissions are set to default and I can read it fine if there is no password without using any code. When I add a password to the Access database, my VB app can't access it anymore. Any ideas??
Albert
0
Comment
Question by:ahammar
1 Comment
 

Accepted Solution

by:
Ajoy earned 100 total points
ID: 1453668
ahammar,
u can set up a connection string with  the userID and Password.
Then set up the conection to the database with this connection string.this should work.
eg:
dim sCnn as string
scnn = "{rsDbdriver}, ServerName,databasename,TableName,UsrID Password"
use this string(scnn) to establish connection  with the .mdb file
regards,
ajoy

my mail ID is :
Ajoy.Tarafder@in.bosch.com
u can mail me at the address mentioned and i will try to help u out

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

929 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now