Open Access Reports in vb.net
Posted on 2006-06-30
I tried to make my dotnet win form show an Access Report. I have tried the following code,
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim acc_App As Access.Application = New Access.Application 'use this early binding if only have one version of access
'Dim acc_App As Access.Application = CreateObject("Access.Application")
'above line will make msaccess.exe running as seen under taskmanager
The first OpenReport did not bring anything to screen, and second one caused error meesage in the Access, ( as it should if I run previw after I launched the mdb).
What is missing here? Thanks!