PC Review


Reply
Thread Tools Rate Thread

Creating an Access Object

 
 
=?Utf-8?B?R2VyYWxkaW5lIEhvYmxleQ==?=
Guest
Posts: n/a
 
      9th Aug 2004
Hello I wish to create an Access Object of an already existing Access .mdb
database. Below is how this is done in visual basic 6. Please tell me how to
do this in visual basic.net.

Dim objAccess As Object
Dim strDbPath as string = "C:\MyAccessdb.mdb"

Set objAccess = GetObject(strDbPath, "Access.Application")


 
Reply With Quote
 
 
 
 
Jorge
Guest
Posts: n/a
 
      9th Aug 2004
Hi Geraldine

You need to add a reference in your project of 'Microsoft
Access 10.0 Object Library'.

Then use the following code :
Dim objAcess As New Access.Application
objAcess.Visible = True
objAcess.OpenAccessProject("c:\Northwind.mdb")

Kind Regards
Jorge

>-----Original Message-----
>Hello I wish to create an Access Object of an already

existing Access .mdb
>database. Below is how this is done in visual basic 6.

Please tell me how to
>do this in visual basic.net.
>
>Dim objAccess As Object
>Dim strDbPath as string = "C:\MyAccessdb.mdb"
>
>Set objAccess = GetObject

(strDbPath, "Access.Application")
>
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating pdf object in Access Ayo Microsoft Access 2 17th Dec 2007 07:31 PM
Able to use Access GUI for creating (modifying) SQL Server object =?Utf-8?B?TGVzbGll?= Microsoft Access 1 13th Sep 2006 10:06 AM
Throw Access is Denied Exception when Creating object RC Microsoft ASP .NET 0 20th Nov 2005 06:09 AM
access denied creating excel object =?Utf-8?B?Q2hyaXM=?= Microsoft Dot NET 0 9th Feb 2005 09:59 PM
Access Denied creating exported NT4 object on Win2K Chris Warr Microsoft Dot NET 0 24th Sep 2003 01:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:48 AM.