CodeItBetter Programming Another VB Programming Blog

How to Print MS Access Report

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
'MS Office - How to Print MS Access Report

'Add a Command Button to your form and set reference to Microsoft Access xx.x Object Library

Private Sub Command1_Click()
    Dim Ac As Access.Application
    Set Ac = New Access.Application
    Ac.OpenCurrentDatabase ("C:\Temp\Test.mdb")
    Ac.DoCmd.OpenReport "Catalog", acViewNormal
    Ac.CloseCurrentDatabase
End Sub
Filed under: MS Office Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.