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

Posted on 2003-11-06
Last Modified: 2007-12-19
If Access Database is password protected then how to access it in crystal report in VB?
Question by:sanjusambhe
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

Expert Comment

ID: 9694939

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


Accepted Solution

PWinter earned 125 total points
ID: 9696613

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.
LVL 17

Assisted Solution

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

Featured Post

Get Database Help Now w/ Support & Database Audit

Keeping your database environment tuned, optimized and high-performance is key to achieving business goals. If your database goes down, so does your business. Percona experts have a long history of helping enterprises ensure their databases are running smoothly.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mysql vs miscrosoft sql server 6 62
Batch convert csv to xlsx 10 62
Query Task 8 23 SQL Connection String Read Only 4 23
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

752 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