creating actions in office programs

J

Jason

I have built a large directory access database for my
company. I realized one day that it would be cool to have
the display map button in Outlook in my Access database
that would collect the address info on the screen and
pull up Microsofts maps, just like Outlook does in a
Contact.

I have knowledgeable friend that said I can copy classes
from outlook into Access? Is he right, if so how do I do
this. Or if there is another way - please give me some
hints?!?!?!?!?!

: )
Thanks
 
K

Ken Slovak - [MVP - Outlook]

You can use the Outlook object model in Access VBA code, you can't
import Outlook classes as such as standalone objects. The only access
to the Map button would be by getting the CommandBarButton that
corresponds to that button and calling its Execute method.

A much better way would be to use an Internet control in your Access
code and supplying that control with an URL to a mapping Web site.
There are a number of posts and threads in the
microsoft.public.outlook newsgroup that deal with the URLs used by the
Map button that would provide examples of what you'd have to put into
your code as the URL for the Internet control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top