I've been trying to think this one through and thought I'd throw it out there for some pointers as I think someone must have done this before.
I've 5 yes/no fields, call them Alpha, Beta, Charlie, Delta and Echo.
I'd like to place on a report, an English wording to the selected fields including correct grammer, but the formula eludes me.
Essentially, if you were to select Beta, Delta and Echo, the English description would read on the report as "You've chosen Beta, Delta and Echo"
The same for Alpha and Delta which would read as "You've chosen Alpha and Delta"
Or just Charlie which would say "You've chosen Charlie" (no commas or and)
The problem is trying to add commas where relevant plus the word 'and' before the last word, or not at all if only one option is chosen.
I hope you can see the logic to my question, I've approached both from trying to use Iif statements with & and + references, but it's adding the 'and' or not and the commas that I'm struggling with, they don't appear where they should and I feel like I've tried multiple configurations to no avail.
Any suggestions would be most appreciated.
I've 5 yes/no fields, call them Alpha, Beta, Charlie, Delta and Echo.
I'd like to place on a report, an English wording to the selected fields including correct grammer, but the formula eludes me.
Essentially, if you were to select Beta, Delta and Echo, the English description would read on the report as "You've chosen Beta, Delta and Echo"
The same for Alpha and Delta which would read as "You've chosen Alpha and Delta"
Or just Charlie which would say "You've chosen Charlie" (no commas or and)
The problem is trying to add commas where relevant plus the word 'and' before the last word, or not at all if only one option is chosen.
I hope you can see the logic to my question, I've approached both from trying to use Iif statements with & and + references, but it's adding the 'and' or not and the commas that I'm struggling with, they don't appear where they should and I feel like I've tried multiple configurations to no avail.
Any suggestions would be most appreciated.