CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2001
    Location
    South Africa
    Posts
    186

    SubReport unable to open database file

    Using VB6, MS Access 2000 mbd and Crystal Reports 8.

    I set the database for the report with
    Code:
    Report.Datafiles(0) = App.Path & "\Database.mbd"
    Now I want to move my reports into their own directory (Reports) under the program directory to clear up the clutter in the application directory. The databases will stay in the application directory (or might be moved into their own directory as well). Changed the location with
    Code:
    Report.Datafiles(0) = App.Path & "\Reports\Database.mdb"
    All the reports with no subreports works 100%. All the reports that contains subreports error out saying Run-time error '20533': Unable to open database.

    I have different databases, that's why I need to pass the database to use to the report but each report uses only the one database passed. The main report as well as the subreports uses the same passed database.

    What am I missing here?

  2. #2
    Join Date
    Aug 2005
    Posts
    6

    Re: SubReport unable to open database file

    HI
    I want ask you very important quotation for my master
    I HAVE PROJECT Visual Basic 6.0 BUT ALL Saved as one text file how can recreate the project from this text file I cut it to multi text files and save it as frm files and try to import it but I have error because I have not frx file
    How can fix this problem

    Edit by admin: no contact info permitted on the forum, thank you
    Thanks

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