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”
With cat
.ActiveConnection = objConn
.Tables.Delete “customers”
End With
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.