Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Nov 2001
    Posts
    192
    Thanks
    0
    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"
    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.

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •