|
-
Sep 28th, 2004, 02:58 PM
#1
Thread Starter
Hyperactive Member
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
Last edited by DaveBo; Sep 30th, 2004 at 12:12 PM.
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|