Results 1 to 4 of 4

Thread: Show Reports

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Location
    India
    Posts
    105

    Show Reports

    I have reports made in MS Access. Is there some way to show MS Access reports using vb...
    Shahab Ahmed

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. 'Set A Reference to MS Access Object Library
    2. Private Sub cmdPreview_Click()          
    3.            Set Axs = CreateObject("Access.Application")
    4.             Axs.Visible = True
    5.             Axs.RunCommand acCmdAppMaximize
    6.             Axs.OpenCurrentDatabase ("c:\yourdb.mdb")
    7.             Axs.DoCmd.OpenReport "TheReportName", acViewPreview
    8.             Axs.DoCmd.Maximize
    9.             Axs.Quit
    10. End Sub

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Location
    India
    Posts
    105
    thanx hack, but the problem is that whether this will work on a system where MS Access is not installed.
    Shahab Ahmed

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Location
    India
    Posts
    105
    anyone pls???????
    Shahab Ahmed

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