Access automation, view single object
I'm currently able to open an Access MDB file's objects (reports, tables, forms, etc) from a VB app, but the full-blown MDB comes up also.
Is it possible to just open/view a single object, e.g. one report, without exposing the whole Access app?
Here's what I'm doing now
VB Code:
Dim accApp as Access.Application
:
Set accApp = New Access.Application
accApp.OpenCurrentDatabase (MDB_Path)
accApp.Visible = True
accApp.RunCommand acCmdAppMaximize
accApp.DoCmd.OpenReport "my_report", acViewPreview
Set accApp = Nothing
Feel free to make any constructive criticisms/suggestions.
Thanks, DaveBo