PC Review


Reply
Thread Tools Rate Thread

ADO Error Attempting to Link Table

 
 
emgallagher@snet.net
Guest
Posts: n/a
 
      6th Jul 2007
Hi,

I am attempting to link a table from an user-level security database
to an unsecured databaes. The error I get is: Run Time Error
-2147467259, Could not find installable ISAM. I have done much
searching but I haven't come up with any solutions. Does anyone have
any ideas?
Thanks!

Option Compare Database
Dim adoCn As ADODB.Connection
Dim adoCat As New ADOX.Catalog
Dim adoTbl As New ADOX.Table
Private Sub createlink_Click()
'Create Link..
Set adoCat = New ADOX.Catalog
Set adoCat.ActiveConnection = adoCn
Set adoTbl.ParentCatalog = adoCat
adoTbl.Name = "LinkTable"
adoTbl.Properties("Jet OLEDB:Link Datasource") = "i:\eb.mdb;" & _
"User Id=psuer;Password=pswrd"
adoTbl.Properties("Jet OLEDB:Link Provider String") = "System
database=I:\e_sec_file.mdw"
adoTbl.Properties("Jet OLEDB:Remote Table Name") =
"TblMainSubstanceDetail"
adoTbl.Properties("Jet OLEDB:Create Link") = True
'Append the table to the tables collection
adoCat.Tables.Append adoTbl
End Sub

 
Reply With Quote
 
 
 
 
emgallagher@snet.net
Guest
Posts: n/a
 
      6th Jul 2007
Upon reflection I came up with the following solution.

Create a user in both databases with same name/PID
In secure database, give the new user access only to the table of
interest.

Open my unsecure database with the following link:
"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "I:\em.mdb" /
WRKGRP "i:\e_sec_file.mdw" /user puser /pwd pswrd

I was then able to link/use the table of interest in the unsecure
database. I dustributed the link, and my users can continue to open
their unsecured database without a password as they always have.

However...I am open to better suggestions.

 
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
Re: Attempting to link cells failing. Pete_UK Microsoft Excel Discussion 1 30th Jul 2008 11:56 PM
Re: Error message attempting to Appending data to a table using code Rick Brandt Microsoft Access Forms 1 4th Jan 2007 12:45 AM
Error Attempting to set Default Value of Table Field through VBA =?Utf-8?B?Q2hhcmxlcyBpbiBJcmFx?= Microsoft Access VBA Modules 4 17th Sep 2006 05:43 AM
Attempting ASP link to Database H8ids Microsoft Access ADP SQL Server 1 6th Oct 2004 09:38 PM
"Index already exists" error when attempting to link to AS400 tabl =?Utf-8?B?QmVja3kgTWFnaW5uaXM=?= Microsoft Access External Data 1 21st Jul 2004 07:17 AM


Features
 

Advertising
 

Newsgroups
 


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