How to Open Access Reports in Visual Basic 6.0 by hamzajhang
in the first step.
make an access database and create a report in the database which you wanna run
in visual basic 6 program. then put a command button on you form and then write
the code to the command button click event. the code is under:
Private Sub Command1_Click ()
Dim ac As
Set ac =
New Access. Application
Ac.opencurrentdatabase <Database Name with Pathname>
Ac.visible = true
Ac.DoCmd.OpenReport <Report Name>, acViewPreview
Martin Allen 1999 - 2011. Last updated
Saturday 13 August 2011 12:14:23 AM +0100.