Results 1 to 9 of 9

Thread: Opening Access reports

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    RSA
    Posts
    35

    Opening Access reports

    How do I open a access report in vb, but only the report and not the the access window?

    Thanx

  2. #2
    cusmar
    Guest
    you can use crystal reports its on the VB6 CD and it has a component where you install your report easy

  3. #3
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    Well, seeing as DocA probably has his reports already set up in Access, I guess he wouldn't want to convert everything over to Crystal reports...

    To answer your question:

    Code:
    Dim acc As New Access.Application
    
    With acc
        .OpenCurrentDatabase "C:\NWIND.mdb"
        .DoCmd.OpenReport "Catalog", acViewPreview
        .DoCmd.Maximize
        .Visible = True
    End With

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    RSA
    Posts
    35
    No, I dont want the access window to open, only the report window. The user shouldnt be allowed to see the database.

  5. #5
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    Access reports are an inherent part of Access aplication, therefore I am almost 100% sure you have to endure opening Access. There are ways in which you can hid the data from the user, (such as shutting the application once the report is closed) but the old F11 - Show Database Window trick will always allow them to see the underlying data.

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    RSA
    Posts
    35
    Thanx, any other sugestions?

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    If you are going to stay with Access reports, you have no other options if you wish to preview your report rather than sending it to print.

    What Gaffer told you IS 100% correct.

  8. #8
    Frenzied Member SeanK's Avatar
    Join Date
    May 2002
    Location
    Boston MA
    Posts
    1,160
    The other option would be to convert to Crystal reports, as has been suggested.

  9. #9

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    RSA
    Posts
    35
    How do i convert it? Is it just on the vb cd, is there a plug in to convert? On the professional or enterprice cd, i couldn't find it on the prof CD, maybe just didin;t look right?

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