Jimmy:
Please try the attached XSN. No code needed.
Jimmy,
You are the man!! It works like a charm! Thanks very much for your help!. I have another column called "Score" in the repeating table, which would be "1" for "Yes", "0" for "No" and blank for "N/A" for 98% of the questions that I have. But for the 2% of the questions, answering "Yes" for a question is supposed to populate a score of "2" for "Yes" instead of "1".How would I go about accounting for these exceptions? Can I use the xml datasource for this as we are doing with the "Comment" column? If yes, can you please tell me how?
Another question I have is that is there a way to enforce the relationship between the questions in the repeating table meaning if a user answers a question "No", the answers for the related questions should automatically be "N/A" and the user shouldn't be allowed to change the answers (conditional formatting is also fine).
Thanks again for your help!!