Hi!
Try this.
Sub ViewReport()
Dim ac As Access.Application
Set ac=New Access.Application
ac.OpenCurrentDatabase (Your Path To The DB)
ac.Visible=True 'preview!! (coment if don't want!)
ac.DoCmd.OpenReport "NameOfYourReport", acViewPrevew 'replace with acViewNormal for printing...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.