VSTO 2005 Access DoCmd

Posted on 2006-11-13
Last Modified: 2012-05-05

I am new to using Visual Studio 2005.

I am creating an App for Access. How do I use DoCmd in my code
Question by:Murray Brown
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

riyazthad earned 500 total points
ID: 17931721
- 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


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

Now you can use Docmd method by invoking


I hope this will help u.


Author Comment

by:Murray Brown
ID: 17931749
I am gettingt t5he error 'Access.Application' is not defined

Author Comment

by:Murray Brown
ID: 17933821
What about Microsoft.Office.Interop.Access.Application

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : All lightning effects with instructions : http://www.mediaf…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question