I have a very nice function with which i used to delete a table in a remote database
and then replace it.
The function is the following
Public Function FncRemoteProducts()
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 “products”
End With
DoCmd.TransferDatabase acExport, “Microsoft Access”, BEpath, acTable, “products”, “products”
End Function
Howver on some computers with WIndows 98 insteads of Windoes 2000 i receive the following
Runtime error Active Component x cant create object
I supose that the errors lies with ADOXDB, may be it is not existent in the older versions.
Can somebody give me an advice how can i delete a remote table with the help of
say DAO or something of the sort.
I will be very grateful for the help