Skip to Content
Jun 27, 2014 at 04:37 PM

Connecting to db, how to using relative path


Just like the picture shows , when I use a absolute path , everything is OK.

But this is not suitable if I move the db and report to another path.

So I want to know how to set a relative path in the red rectangle. Thanks.

Header 1 Header 2 Header 3 DB & RPT at same path DB at upper path of RPT DB at lowwer path of RPT

c:\Crystal Reports\My Report.rpt

c:\Crystal Reports\My Database.mdb

c:\Crystal Reports\My Report.rpt

c:\My Database.mdb

c:\Crystal Reports\My Report.rpt

c:\Crystal Reports\datasources\My Database.mdb

My Database.mdb? ? \datasources\My Database.mdb ?