wrichardson530 0 Newbie Poster

I'm tring to get a report I made called studenthisrtory show up from a menu. I am using 2000 acess and the database is called MiniEconomy. I have developed this code so far.
Not sure what i'm doing wrong
I keep getting the User-defined type not define comple error message.
What i highlighted it waht the complier goes to during debugging.


Dim appAccess As Access.Application
Set appAccess = New Access.Application

appAccess.Visible = True
appAccess.OpenCurrentDatabase App.Path & "\MiniEconomy.mdb"
appAccess.DoCmd.OpenReport "StudentHistory", acViewPreview
appAccess.DoCmd.Maximize
End Sub