Solved

If Access Database is password protected then how to access it in crystal report in VB?

Posted on 2003-11-06
5
630 Views
Last Modified: 2007-12-19
If Access Database is password protected then how to access it in crystal report in VB?
0
Comment
Question by:sanjusambhe
[X]
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
5 Comments
 
LVL 8

Expert Comment

by:heskyttberg
ID: 9694939
Hi!

You should really consult a book or manual to Crystal Report on this.

Regards
/Hasse
0
 
LVL 6

Accepted Solution

by:
PWinter earned 125 total points
ID: 9696613
Hi.

In VB you should loop through tables in your report and for each table provide the password at the property of "ConnectionProperty".
There are examples at Crystal Report's Developers Help (CrystalDevHelp.chm) under chapter of "How toconnect to a secured Microsoft Access database".

Good Luck.
PW
0
 
LVL 17

Assisted Solution

by:walterecook
walterecook earned 125 total points
ID: 9701240

Here's an example of a password connection using ADO

Set gConn = New ADODB.Connection
gConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & db & ";Jet OLEDB:Database Password=some;"

and one in DAO
Set db = Workspaces(0).OpenDatabase(App.Path & "\someDb.mdb", False, False, ";pwd=somePass")

Hope that helps
Walt
0

Featured Post

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

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

Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

630 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