Solved

VSTO 2005 Access DoCmd

Posted on 2006-11-13
3
209 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:murbro
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
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

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:murbro
ID: 17931749
I am gettingt t5he error 'Access.Application' is not defined
0
 

Author Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

829 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