Hi,
I'm having a problem with opening an access report in my program.
I'm using an access database(2003) in which I've already made some reports. In my my program I fill the databases and then after hitting a button I want to view the reports I've already made.
I got the progam to open access but when I want to open and view the reports it goes wrong. Instead of opening the report access gives me the possibility to save the report as an PDF file.
This is the code I'm using:
Dim oAccess As Object
oAccess = CreateObject("Access.Application")
oAccess.OpenCurrentDatabase(filepath:="S:\Schildklier_Portaal.mdb", exclusive:=False)
oAccess.DoCmd.OpenReport(ReportName:="qry_overzicht_schildkliermeting")
What am I doing wrong here? Or is there an easier way to view the reports I've made?
paul
I'm having a problem with opening an access report in my program.
I'm using an access database(2003) in which I've already made some reports. In my my program I fill the databases and then after hitting a button I want to view the reports I've already made.
I got the progam to open access but when I want to open and view the reports it goes wrong. Instead of opening the report access gives me the possibility to save the report as an PDF file.
This is the code I'm using:
Dim oAccess As Object
oAccess = CreateObject("Access.Application")
oAccess.OpenCurrentDatabase(filepath:="S:\Schildklier_Portaal.mdb", exclusive:=False)
oAccess.DoCmd.OpenReport(ReportName:="qry_overzicht_schildkliermeting")
What am I doing wrong here? Or is there an easier way to view the reports I've made?
paul