I have an Access table with around 10 yes/no fields regarding patient diet. (For instance: Low-Fat, Low-Sugar,No-Restrictions, etc. The point is that for each patient we check off the fields accordingly). I'd like to create a report that displays the diet for each patient. So for one patient it might read as thus: John Smith Low-Fat,Low-Carb. You get the idea.
Here's what I would need Access to do. For each row, check each column, if it is checked, concatenate that diet type to a string. That string is what Access Report should display.
I thought of doing it like this: myString = ""; myString += IIF([LOW_FAT]==-1,"Low-Fat",""); myString += IIF([LOW_CARB]==-1,"Low-Carb","");
and so on, using the expression builder.
Can this be done? If not, how would I use the code builder for this?
Thanks