Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access report

Status
Not open for further replies.

sbdproj

Programmer
Sep 22, 2003
22
NL
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top