Hi,
thanks for that - I have set up the filters already as you have suggested - these work fine. The problem is with duplicate entries appearing. For instance when I select the Area, it gives me the relevant site, but there are duplicate entries, so I can see Site A twice, site b three times etc.
I have used the guide from here
http://www.infopathdev.com/howto/tutorials/default.aspx?i=4e038a7f3f5b443bbe4db49f86d95fbaand used the instructions for FILTERING LISTS FOR UNIQUE VALUES however I cant get the code to work
have tried creating a Uniqueness filter, using the following expression
not(.=..preceding-sibling::d:wgTest2/@Area) - This works fine for the Area entries - no duplicates displayed.
However when I try to expand the filter I can't get tit to work.
I've used the following expression on the Site data
not(.=../preceding-sibling::d:wgTest2[@Area=current()/my:wgdata2/my:Area]/@Site)
Thanks again for you r help