Preview Access Report

I am encountering missing member exception was unhandled error when trying to open and preview an Access report. Please help. The error is : Public member 'AcView' on type 'ApplicationClass' not found." Here is the coding:
accRpt = CreateObject(
"Access.Application")

accRpt.Application.OpenCurrentDatabase(
"C:ProgrammingDbAssetRegister.mdb")

accRpt.Application.DoCmd.Maximize()
accRpt.Application.Visible =
True

accRpt.Application.DoCmd.Maximize()
accRpt.Application.Visible =
True

accRpt.DoCmd.OpenReport(
"RptAllUsers", accRpt.AcView.acViewPreview, View:=accRpt.AcView.acViewPreview)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories