G
Guest
Hi
I can successfully import a series of xml files one at a time. I have been
using the method Application.ImportXML to achieve this.
Because of the structure of each file, each import creates two tables. The
table names have a format like:
qryPurchOrdersAndSuppliers(n)
LineItem(n)
where n represents either nothing or a numeric.
eg qryPurchOrdersAndSuppliers or qryPurchOrdersAndSuppliers1 or
qryPurchOrdersAndSuppliers2 etc
I want to append the data from each table into another table.
eg qryPurchOrdersAndSuppliers(n) into tblSales and LineItem(n) into
tblSaleDetails.
I have discovered that if I delete the tables qryPurchOrdersAndSuppliers and
LineItem, then the next import will reuse those names.
Note though in practice there might be imports from several users at near
simultaneous times, therefore the two tables (qryPurchOrdersAndSuppliers and
LineItem) might not be deleted before the next import by somebody else and
therefore the issue of the numeric being appended at the end comes into play.
So, the problem I have is that I cannot be sure of the exact names of the
two tables that will be created following the import.
Is there any way of determining the precise name of the two tables that have
been created?
Kind regards
Ross Petersen
I can successfully import a series of xml files one at a time. I have been
using the method Application.ImportXML to achieve this.
Because of the structure of each file, each import creates two tables. The
table names have a format like:
qryPurchOrdersAndSuppliers(n)
LineItem(n)
where n represents either nothing or a numeric.
eg qryPurchOrdersAndSuppliers or qryPurchOrdersAndSuppliers1 or
qryPurchOrdersAndSuppliers2 etc
I want to append the data from each table into another table.
eg qryPurchOrdersAndSuppliers(n) into tblSales and LineItem(n) into
tblSaleDetails.
I have discovered that if I delete the tables qryPurchOrdersAndSuppliers and
LineItem, then the next import will reuse those names.
Note though in practice there might be imports from several users at near
simultaneous times, therefore the two tables (qryPurchOrdersAndSuppliers and
LineItem) might not be deleted before the next import by somebody else and
therefore the issue of the numeric being appended at the end comes into play.
So, the problem I have is that I cannot be sure of the exact names of the
two tables that will be created following the import.
Is there any way of determining the precise name of the two tables that have
been created?
Kind regards
Ross Petersen