Hilary, I'm back at work so I can provide more info about my form. As for the error message I spoke of earlier, it was "InfoPath cannot complete this action because of an error in the form's code". If I use xCollection::insert there is no problem. If I use xCollection::insertBefore (or other variations) I receive the error message.
As for my form, it has two sections- the top section is a repeating table and the second section is a repeating section with a repeating table inside of it. The top section contains employee data- name, unit, supervisor. The 2nd section contains a date field and task/time spent fields. The task field is a drop down box where the employee selects whatever task they worked on. The time spent field is where they record the time spent on any particular task. When the employee opens the form, they put their name in a name query field, then click a query button, which then populates the top section and the 2nd section. So, after running the query, the top section will contain their name, unit and supervisor. The second section shows the dates they worked and the tasks/time spent on each task. The second section is filtered to only show the 6 most recent weeks worked, so the typical user sees about 30 repeating sections worth of dates worked and the tasks/time spent for those days.
As it stands, when the user clicks the add section button I'm attempting to add to the form, it puts the new section at the bottom of the form (after the last repeating section), which requires the user to scroll all the way to the bottom of the form to fill it out. What I'm trying to accomplish is to have the new section be inserted immediately below the top section and above the most recently dated 2nd section, basically in between the two. Does that make sense? Let me know if you need further info and thanks again for your help!