Sorry, man. This is what I have:
Repeating section - WorkOrder
Repeating section - WorkOrderConcern
Repeating Section - WorkOrderConcernInfo
I have a button that creates an appointment in my Outlook calendar. The code in the button grabs the infromation from a couple of fields in the WorkOrder section - this information is not repeated, but it is needed every time that the button is clicked - I think I have this covered.
The code also grabs information from a couple fields in WorkOrderConcern. This is where the button resides. I only need to grab this information from the repeating section where the button is.
I also grab all the information from the WorkOrderConcernInfo section - just two fields. This can repeat several times within WorkOrderConcern. I need to get every instance of this information that is in a given WorkOrderConcern.
I take all of this and use the various fields to make up the appointment elements. Where I am struggling is the WorkOrderConcernInfo. The code that I have is getting every instance of this rather than just what is in that instance of WorkOrderConcern.
Do you need to see any more of my code besides what I have already posted?