Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VSTO 2005 Access DoCmd

Posted on 2006-11-13
3
Medium Priority
?
215 Views
Last Modified: 2012-05-05
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
Comment
Question by:Murray Brown
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
riyazthad earned 2000 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

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
 

Author Comment

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

Author Comment

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

971 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