Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

VSTO 2005 Access DoCmd

Hi

I am new to using Visual Studio 2005.

I am creating an App for Access. How do I use DoCmd in my code
0
Murray Brown
Asked:
Murray Brown
  • 2
1 Solution
 
riyazthadCommented:
- Create a new project
- Add COM referece by selecting Microsoft Access Object Library . Click on 'Add Reference' and select COM tab.
- Create object of type Access.Application

like

Dim obj As Access.Application
obj = New Access.ApplicationClass

Now you can use Docmd method by invoking

Obj.doCmd

I hope this will help u.

Thad
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
I am gettingt t5he error 'Access.Application' is not defined
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
What about Microsoft.Office.Interop.Access.Application
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now