Thanks for the link Madhuri,
But it has some limitations. The main problem is that the filters described in this article are not supported in the Browser compatibility mood, so I can't use it as it is a main requirement that the form has to be browser compatible.
The other problem is, I'm using a Repeated Section on the Secondary Data connection itself, I don't create fields and assign values to them from the data source. i.e. In the Data Source Task Pane, I select my Secondary Data Source from the dropdown list (i.e. Departments Data Source), Right click it and select Repeating Section with Controls, so it will render all the List Items when you open the form.
When I do it this way I cannot assign or filter values to the fields.
The repeated section has to be added this way because I need to display all the Items in the data connection when the user navigates through to the form. If there is an alternative way I can do this using controls in the Main Data Source, without user having to add repeating sections, please let me know. Otherwise I'm looking to filter a Secondary Data Source by a value of another Secondary Data Source.
Thanks.