Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How do I set database location on crystal rpts to app path?

How do I set database location on crystal rpts to app path?

How do I set database location on crystal rpts to app path?

I need to learn how to set the crystal reports database location to the database's path. I'm using Crystal Reports which is included with Microsoft Visual Basic 6.  I use ms access as my database and would like to have crystal reports know where that database is no matter where the user places the folder that contains the vb program, the database and the crystal reports that I have designed to workd with the acces database.  I have the datacontrol set to the application path but how do I set the crystal report's path to the database?

RE: How do I set database location on crystal rpts to app path?

Hi Paco,

Your description was too cryptic. I am trying to give answer in context, which I understood.

First of all you must be maintaining database path in your application. Because you are already connecting to this database, right?

With the report object, there is property called Database. So before using the report object, you need to set this property to the path of the database. There are other properties too related to database like parameterfields and sqlquerystring that should be passed along depending on the report.

Post again if I am getting you wrong.

Have Fun,
Malay M. Thakershi

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close