Results 1 to 2 of 2
2002-01-15, 05:22 #1
- Join Date
- Nov 2001
- Thanked 0 Times in 0 Posts
delete link in remote object (Access 2000)
Delete a link in a remoteobject
My problem is deleting a table customers being a remote object, that is to say i have to delete it while working from outside,being in another database.I use a function that works fine with unrelated tables, but if the table is related,as for example the tables customers, related with the table orders, then i receive the message that related table cannot be deleted.Here is the function that i have:
Dim cat As New ADOX.Catalog, objConn As New ADODB.Connection
objConn.Open "Provider= Microsoft.Jet.OLEDB.4.0;Data Source = C:bestorebe.mdb"
.ActiveConnection = objConn
I can delete links if i delete them within the database i work in, but i cannot add some code to the above function
in order to delete the link in as remote object.
I will be extremely grateful if somebody could help me with my function.I need just to delete the link.
2002-01-15, 14:02 #2
- Join Date
- Dec 2000
- Sacramento, California, USA
- Thanked 1 Time in 1 Post
Re: delete link in remote object (Access 2000)
You aren't deleting a link. It appears you're actually trying to delete a table where referential integrity is enforced between it and other tables. That means you would need to walk the relationships and remove them first.Charlotte