Hi,
I'm importing an XML file into Access 2003 to make a table but I'm having problems with the tables that are automatically being created.
The XML tags have this format:
When I import this XML file into my Database, it creates 2 tables:
Address -which only contains fields : ADDRESS1, City, PostalCode, and Country
Company - which contains fields: ID, Name, ProductList, and Status
The Problem:
What I want is to have all the fields in 1 table, OR the Address table to also have the ID so I know which company goes with which address!
I'm not too familiar with XMLs but I think I have to create a new Schema for it?
Edit: I'm importing this XML file through VBA code (planning on automating the import) and appending it onto another table. The reason I'm appending the data onto a table is because when I import, it makes the fields "Text" with a max character limit but I need some fields to be "Memo". The reason for this is so I don't get any Truncation Errors
Thanks for any help,
Muskilh
PS.
Sorry if this could have been posted in a better section
I'm importing an XML file into Access 2003 to make a table but I'm having problems with the tables that are automatically being created.
The XML tags have this format:
Code:
<?xml version='1.0' encoding='ISO-8859-1' ?>
<Companies>
<Company>
<ID></ID>
<Name> </Name>
<Address>
<ADDRESS1></ADDRESS1>
<CITY></CITY>
<POSTALCODE></POSTALCODE>
<COUNTRY></COUNTRY>
</Address>
<ProductList></ProductList>
<Status></Status>
</Company>
<Company>
<ID></ID>
<Name> </Name>
<Address>
<ADDRESS1></ADDRESS1>
<CITY></CITY>
<POSTALCODE></POSTALCODE>
<COUNTRY></COUNTRY>
</Address>
<ProductList></ProductList>
<Status></Status>
</Company>
.
.
.
</Companies>
When I import this XML file into my Database, it creates 2 tables:
Address -which only contains fields : ADDRESS1, City, PostalCode, and Country
Company - which contains fields: ID, Name, ProductList, and Status
The Problem:
What I want is to have all the fields in 1 table, OR the Address table to also have the ID so I know which company goes with which address!
I'm not too familiar with XMLs but I think I have to create a new Schema for it?
Edit: I'm importing this XML file through VBA code (planning on automating the import) and appending it onto another table. The reason I'm appending the data onto a table is because when I import, it makes the fields "Text" with a max character limit but I need some fields to be "Memo". The reason for this is so I don't get any Truncation Errors
Thanks for any help,
Muskilh
PS.
Sorry if this could have been posted in a better section
Last edited: