Results 1 to 4 of 4
  1. #1
    Nina07 is offline Novice
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    2

    Export to xml: Table is shown twice

    Hello,
    I have a problem with an export to xml.
    The picture below show the problem.
    When I want to export my tables to xml, I start with "Hoofdgroep". The problem is that "Subsubgroep" is shown twice.
    And when i take a look at the exported xml I see that data is not correct.
    What I want is that under Hoofdgroep ID 1 and SubgroepID 1 only the data of subsub 1.1.1 and 1.1.2 and 1.1.x... is shown

    I Hope this makes any sense and that someone can help me.


    If you need more information you can just ask.
    Thans in advance.
    Click image for larger version. 

Name:	Capture1.PNG 
Views:	8 
Size:	70.7 KB 
ID:	20302Click image for larger version. 

Name:	Capture2.PNG 
Views:	9 
Size:	22.4 KB 
ID:	20303

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    I think this has something to do with your table relationships. There are many One-To-One relationships and many primary keys in a table which is unusual. The table "Subsubgroep" and "subgroep" have two fields related to each other.That may be the reason. Looking at the table relationships, I think there is something seriously wrong with your table relationships or I am completely wrong !!
    You can go through these links https://support.microsoft.com/en-us/kb/304466/ and https://support.office.com/en-NZ/Art...3-0d3926086687

  3. #3
    Nina07 is offline Novice
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    2
    Thank you for your reply. I have attached an other image so you can see what the data looks like. Maybe this way all the links make sense. we made the links like this so that evere item in "subgroep" shows up in the correct "hoofdgroep" (every "subgroep" with "hoofdgroepID" 1 shows up under "HoofdgroepID" 1) the same goes for subsubgroep: every subgroep with HGID 1 and SGID 1 goes under SG 1.1
    Also there are 3 links going from "subsubgroep" to "subsubgroepartikel" and here the data in the xml is showing up fine for this relation.
    Click image for larger version. 

Name:	Capture3.PNG 
Views:	7 
Size:	126.8 KB 
ID:	20304

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Looking at your data from above three tables, if they are PArent. Child and Grandchild, then your relationships are incorrect. Follow the principle that all tables to have one primary key ( i am refering to related fields only. If your business model requires more, I can't say about it). Each Parent's Primary key is related to it's child table to a field which is not primary key.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 07-25-2013, 07:36 AM
  2. Data entered into form is not shown in Table
    By engr_saud1 in forum Forms
    Replies: 5
    Last Post: 04-07-2013, 06:34 AM
  3. Warehouse bin location not shown
    By BamaBBQ1 in forum Queries
    Replies: 3
    Last Post: 03-22-2013, 06:46 PM
  4. Replies: 1
    Last Post: 01-26-2012, 05:25 PM
  5. Imported data in table not shown in Forms
    By Zildjyn in forum Import/Export Data
    Replies: 9
    Last Post: 12-30-2011, 01:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums