HostApplication in Access add-in

Add-in Express™ Support Service
That's what is more important than anything else

HostApplication in Access add-in
 
Graham Charles


Guest


I'm unable to retrieve the HostApplication in an Access add-in. Following the Outlook examples, I've used

    Public Function AccessHost() As Microsoft.Office.Interop.Access.Application
        AccessHost = Me.HostApplication
    End Function


But Me.HostApplication returns Nothing. Also, I'm not entirely sure where to instantiate my add-in; at this point, I'm doing it in a form, but should it be more globally located?

Thanks,

g.
Posted 19 Dec, 2005 20:26:31 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Graham.

You can download a simple example using the following link:
http://www.add-in-express.com/projects/accessexample_vb.zip

Please test it on your PC. The PIAs for Office 2003 must be installed.
Posted 20 Dec, 2005 08:50:00 Top
Graham Charles




Posts: 13
Joined: 2005-07-29
Thanks; that should probably help.

Could I respectfully suggest that you post links to all your sample projects somewhere on your Web site? The link you just gave is not at http://www.add-in-express.com/free-addins/index.php, nor could I find it by searching the forums for "Access."

I assume there are other sample projects not listed on that page, too, because I've seen you post some of them here.

Thanks.
Posted 20 Dec, 2005 17:36:33 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Graham.

You are right. We should publish all our examples on one page. We will necessarily do this soon.
Posted 21 Dec, 2005 11:02:44 Top