Solved

VSTO 2005 Access DoCmd

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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