• delete link in remote object (Access 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » delete link in remote object (Access 2000)

    Author
    Topic
    #365394

    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.

    Viewing 0 reply threads
    Author
    Replies
    • #563934

      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.

    Viewing 0 reply threads
    Reply To: delete link in remote object (Access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: