Results 1 to 2 of 2

Thread: how to access report

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Location
    faridabad
    Posts
    101

    how to access report

    hi friends,

    can u tell me how to show access reports through vb

    regards
    ishikha
    ishikha

  2. #2
    Hyperactive Member Dinz's Avatar
    Join Date
    Jan 2002
    Posts
    359
    'Give reference Microsoft Access 9.0 Object Library


    Dim con As New Access.Application

    Private Sub Command1_Click()
    con.OpenCurrentDatabase ("C:\DataBase.mdb")
    con.Visible = True
    con.DoCmd.OpenReport reportname:="MyReport", view:=Access.acReadOnly

    Set con = Nothing
    End Sub
    !!!NobodyisPerfect......IamNOBODY!!!
    How's your wife and my kids?.....

    Never argue with an idiot. They drag you down to their level then beat you with experience!

    Child says : Mummy mummy, can i play with grandpa ?
    Mum says : NO, you have already dug him up twice.

    Galahtec The VB Forum

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