Results 1 to 2 of 2

Thread: Executing an Access Report from VB With Parms

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 1999
    Location
    South Africa
    Posts
    2

    Post

    Hi All

    Can Anyone help me with some Code?

    I Would like to execute an MS Access Report, stored in the Report Tab in MS Access DB, from VB 5 Code and pass a From and a To Date Paramter to the Code/Report.

    Could you email me directly to:

    [email protected]

    as my email has changed and I won't get a notification when you reply

    Many Thanx

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Post

    Try follow code:
    Code:
    Dim Rep As Access.Application
    
    Set Rep = New Access.Application
    Rep.OpenCurrentDatabase("d:\db1.mdb")
    Rep.DoCmd.OpenReport "Test1"
    Rep.CloseCurrentDatabase
    ------------------
    smalig
    [email protected]
    smalig.tripod.com

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