Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / May 2006

Tip: Looking for answers? Try searching our database.

Invoking Microsoft Access from VS 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rjss - 29 May 2006 15:49 GMT
Hi there:

Does anybody know how can I Invoke a Microsoft Access function from a VB (VS
2005) programm.

More specifically, I want to perform Access administrartive functions to a
JET 4.0 Database from a VB programm.

By the way, does JET 4.0 language include such administrative tools?
Signature

rjss

Norman Yuan - 29 May 2006 20:03 GMT
If you mean to start MS Access from your app and then do something in the
Access, then you would use ActiveX automation through COM Interop.

You set reference to Access Object library (better yet, use PIA provided by
MS, if the Access version is 2002 or later). and then use code like this:

Dim accApp As Access.Applicrion
accApp=New Access.Application
accApp.Visible=True

'Do something with accApp. You need to study Access Object Nodel to see what
you can do

accApp.Quit

However, if you only need to do some data (in the mdb file) manipulating,
you may not need to automate Access. That is the point for you to write a
stand-alone app in VB.NET. I'd rather write a Access app if I have to use
functionality only available in Access, since Access installation is
required for automation, anyway.

> Hi there:
>
[quoted text clipped - 6 lines]
>
> By the way, does JET 4.0 language include such administrative tools?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.