M
Mark
The following code is from Q160875: to first delete objects in a target
database before exporting from the current database. I need a Where clause
to delete only the objects in the target database which match the names in
the current database. Thank you for any help.
Mark.
Public Function TransferObject(Filename As String, objType As_ Integer,
objName As String)
On Error GoTo TransferObject_Err
Dim accObj As New Access.Application
accObj.OpenCurrentDatabase Filename
accObj.DoCmd.DeleteObject objType, objName
accObj.CloseCurrentDatabase
Set accObj = Nothing
database before exporting from the current database. I need a Where clause
to delete only the objects in the target database which match the names in
the current database. Thank you for any help.
Mark.
Public Function TransferObject(Filename As String, objType As_ Integer,
objName As String)
On Error GoTo TransferObject_Err
Dim accObj As New Access.Application
accObj.OpenCurrentDatabase Filename
accObj.DoCmd.DeleteObject objType, objName
accObj.CloseCurrentDatabase
Set accObj = Nothing