Solved

VSTO 2005 Access DoCmd

Posted on 2006-11-13
3
199 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now