Results 1 to 2 of 2

Thread: Open a report from VB6 code ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    120

    Unhappy

    i need to open a report that i created in access 97 from a VB6 program and i need help,i need the code that will open a specific report in an mdb file .
    10x
    shachar shaty

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284
    Private Sub Command1_Click()
    Dim a As Access.Application

    Set a = CreateObject("Access.Application")
    a.OpenCurrentDatabase App.Path & "\NWind.mdb"
    a.Visible = True
    a.DoCmd.OpenReport "Catalog", acViewPreview
    a.DoCmd.Maximize

    End Sub

    That should do it for ya

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