Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2003-11-06
5
Medium Priority
?
639 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
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 500 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 500 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

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
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…
Suggested Courses

885 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