Results 1 to 2 of 2

Thread: Calling an Access(2000) report from VB6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2002
    Location
    Florida, USA
    Posts
    93

    Question Calling an Access(2000) report from VB6

    How can I call a report in Access(2000) from VB6???

  2. #2
    New Member
    Join Date
    Sep 2002
    Posts
    2
    At the following URL (on Microsoft Knowledge Base), look for Previewing or Printing a Report. Also, read from the start since it shows you how to use Access objects :

    http://support.microsoft.com/default...b;en-us;147816

    Here is a short example:

    VB Code:
    1. Set objACCESS = CreateObject("Access.Application")
    2. With objACCESS
    3. .OpenCurrentDatabase strDatabase
    4. .Visible = True
    5. .DoCmd.OpenReport strReportName, acPreview
    6. End With
    7. Set objACCESS = Nothing

    JeffB

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