Results 1 to 4 of 4

Thread: How to make the connection to DB dynamic - CR9

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Exclamation How to make the connection to DB dynamic - CR9

    Hi folks,
    ..Project\application\Database\mydb.mdb
    ..Project\application\Reports\myreport.rpt
    the above is the structure how my db and rpt is organised in relation to the application developed in VB.
    In the evening I copy the whole proj on to a CD.
    Everyday when I sit to design/modify a report, I do it on a system whichever is available, so I simply copy the whole proj in to the available system. The problem is everytime I change the system, and open the report in CR9 I need to again set the connection/db settings (the one which asks for location of db etc) for every report created/modified earlier in another system. I was wondering, since the relative structure between the db and report is remaining same, is it possible to make the connection/db location dynamic. This would save me a lot of trouble.
    Does anyone know how this can be done.
    db: Access 2003
    Report: CR9

    Thankyou.

  2. #2
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Resolved Re: How to make the connection to DB dynamic - CR9

    I have two methods , one that u make dsn and get report connect with dsn , so u dont need to update any thing , just when u want to use report in any new system , just create dsn and it will working fine.

    secondly put report and mdb on same path and then make the connection , so u dont need to define db connection again and agaiin , just copy paste and u r done

    i will prefer first method.
    Thanks and Regards,

    Muhammad Abbas

  3. #3
    Addicted Member mabbas110's Avatar
    Join Date
    Oct 2005
    Location
    Karachi , Pakistan
    Posts
    172

    Re: How to make the connection to DB dynamic - CR9

    Please rate it if it had helped you out.
    Thanks and Regards,

    Muhammad Abbas

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: How to make the connection to DB dynamic - CR9

    Iam thinking something like relative paths.. any other ideas....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width