Long story short, I have a table (let's call it "tblA") with records in it and each record has 25 fields that are checkboxes. Along with each checkbox is another field that is text. So, 50 total fields, 25 checkboxes, 25 short text fields.
I have a query (let's call it "qryA") that will show me every record from that table that has AT LEAST one checkbox "checked". Doesn't matter which one, could be any of them or all of them. This works fine.
My problem is....I'd like to create a report that shows me each record that has a checkbox "checked" (just like the "qryA"), but I would like it to show me the text from ONLY the fields that correspond to the boxes that are checked. Make sense?
So if I have:
Check1: TRUE
Text1: Red
Check2: FALSE
Text2: Blue
Check3: TRUE
Text3: Green
Check4: TRUE
Text4: Purple
The I would like the report to tell me for that record: Red, Green, and Purple. You can see how this gets crazy with 25 possible text fields. I COULD have (although unlikely) all 25 checks TRUE, so therefore there would be 25 text fields to display. I assume my report will need 25 fields and some kind of "If" statement that says (for the first one) that if #1 is checked display Text1, if not, then If #2 is checked, display Text2, etc.
I figured out how to do this with If statements for the Control Source for the first 10, but I guess you can't do more than 10 nested If statements...? How else could I do it? Thanks ahead of time.