Results 1 to 2 of 2

Thread: Access 97 reports

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Posts
    140
    hello,

    I wonder if it is possible to use Access 97 reports from VB 6 front end. If it is, please provide sample code.

    Thank you very much.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can but unless the target machine has Access on it then it wont work. You just have to subclass Access.

    Code:
    Dim appAccess As Access.Application
    Set appAccess = New Access.Application
    
    appAccess.DoCmd.OpenReport "Name of Report", acViewNormal
    appAccess.Quit
    
    set appAccess=Nothing
    Oh by the way make sure you reference the Microsoft Access 8.0 Object Library first

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