Hello,
I'm using following code to transfer a table along with its data into other db (backend db of another FE) which already has a table with same name. I intend to replace that table with the transferred one. Also a field in the table is an OLE Object data type.
After the code is run, table is transferred successfully and is also being linked shown correctly in the respective FE in which it is linked. But when I view the target db in which the table was transferred, the table is not visible. Even if I turned ON show hidden tables and show system table, it is not being shown. I viewed the MSysObject table and it is present in it with flag 1.
My question is, how to fix this issue. And if I let it remain unfixed, can it cause some problem in future like db corruption etc? What am I doing wrong in the code which is causing this issue.
Best Regards,
Abdullah
I'm using following code to transfer a table along with its data into other db (backend db of another FE) which already has a table with same name. I intend to replace that table with the transferred one. Also a field in the table is an OLE Object data type.
Code:
Dim db As dao.Database
Set db = DBEngine.OpenDatabase(Name:=sDBFullPath, options:=False, ReadOnly:=False, Connect:=";PWD=" & sPWD)
If sObjectTargetName = "" Then sObjectTargetName = sObjectSourceName
DoCmd.TransferDatabase acExport, "Microsoft Access", sDBFullPath, acTable, sObjectSourceName, sObjectTargetName, False
db.Close
Set db = Nothing
After the code is run, table is transferred successfully and is also being linked shown correctly in the respective FE in which it is linked. But when I view the target db in which the table was transferred, the table is not visible. Even if I turned ON show hidden tables and show system table, it is not being shown. I viewed the MSysObject table and it is present in it with flag 1.
My question is, how to fix this issue. And if I let it remain unfixed, can it cause some problem in future like db corruption etc? What am I doing wrong in the code which is causing this issue.
Best Regards,
Abdullah