|
|
@@ -74,6 +74,8 @@ Err_LinkedTable_Fin:
|
|
|
path = dirpath & to_filename(tbl_name) & ".LNKD"
|
|
|
VCS_File.ConvertUcs2Utf8 tempFilePath, path
|
|
|
|
|
|
+ Kill tempFilePath
|
|
|
+
|
|
|
logger "ExportLinkedTable", "DEBUG", "LinkedTable " & tbl_name & " exported to " & path
|
|
|
|
|
|
Exit Sub
|
|
|
@@ -438,9 +440,11 @@ next_field:
|
|
|
|
|
|
Dim path As String
|
|
|
path = obj_path & to_filename(tbl_name) & ".txt"
|
|
|
+
|
|
|
VCS_File.ConvertUcs2Utf8 tempFileName, path
|
|
|
+
|
|
|
logger "ExportTableData", "DEBUG", "Data from '" & tbl_name & "' exported to " & path
|
|
|
- FSO.DeleteFile tempFileName
|
|
|
+ Kill tempFileName
|
|
|
|
|
|
Exit Sub
|
|
|
err:
|
|
|
@@ -528,11 +532,13 @@ Err_CreateLinkedTable_Fin:
|
|
|
'CurrentDb.Execute sql
|
|
|
run_sql sql
|
|
|
|
|
|
+
|
|
|
logger "ImportLinkedTable", "DEBUG", "LinkedTable " & tblName & " improted from " & obj_path & tblName & ".LNKD"
|
|
|
|
|
|
Err_LinkPK_Fin:
|
|
|
On Error Resume Next
|
|
|
InFile.Close
|
|
|
+ Kill tempFilePath
|
|
|
|
|
|
End Sub
|
|
|
|
|
|
@@ -626,7 +632,9 @@ Public Sub ImportTableDef(ByVal tblName As String, ByVal directory As String)
|
|
|
Else
|
|
|
logger "ImportTableData", "DEBUG", "TableDef '" & tblName & "' imported from " & filepath
|
|
|
End If
|
|
|
-
|
|
|
+
|
|
|
+ On Error Resume Next
|
|
|
+ Kill tempFileName
|
|
|
End Sub
|
|
|
|
|
|
' Import the lookup table `tblName` from `source\tables`.
|
|
|
@@ -691,7 +699,7 @@ Public Sub ImportTableData(ByVal tblName As String, ByVal obj_path As String)
|
|
|
|
|
|
logger "ImportTableData", "DEBUG", "Table data '" & tblName & "' imported from " & path
|
|
|
|
|
|
- FSO.DeleteFile tempFileName
|
|
|
+ Kill tempFileName
|
|
|
Exit Sub
|
|
|
err:
|
|
|
logger "ImportTableData", "ERROR", "Table data '" & tblName & "' : Unable to import"
|