Hi,
I've made an report in an Access 2003 database and now I want to open this report when I click a button in my program.
How can I do this?
I've found something like this but it's not working:
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim oAccess As Object
oAccess = CreateObject("Access.Application")
oAccess.OpenCurrentDatabase("S:\schildklier_Portaal.mdb", False)
oAccess.OpenReport("qry_overzicht_schildkliermeting")
End Sub
I've made an report in an Access 2003 database and now I want to open this report when I click a button in my program.
How can I do this?
I've found something like this but it's not working:
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim oAccess As Object
oAccess = CreateObject("Access.Application")
oAccess.OpenCurrentDatabase("S:\schildklier_Portaal.mdb", False)
oAccess.OpenReport("qry_overzicht_schildkliermeting")
End Sub