CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Crystal Report

  1. #1
    Join Date
    Aug 1999
    Location
    Québec (Canada)
    Posts
    210

    Crystal Report

    I have a report (x.rpt) in "c:\temp" and I call this report in VB6. When I maked the report in crystal I used the Data in "C:\temp\BD.mdb". Now, I would like to use the (x.rpt) with VB but my new data is in "C:\xxx\BDTest.mdb". Do you know how can I change the DataBase in Vb for my Report (x.rpt). Or is't possible to use the (x.rpt) with an other DataBase?
    (The DataBase have the same fields)

    Sorry for my english

    Tanks!
    Redg


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: Crystal Report

    You can change the Database used with a Report using the CrystalReport1.Database.Tables(1).Location Property, ie.

    CrystalReport1.Database.Tables(1).Location = "C:\xxx\BDTest.mdb"

    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

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

Featured