Hi,
Does anybody know how I would get rid of the last comma in the following expression? Pardon me if I don't use the correct terminology but, I'm creating a report where I'm combining a bunch of fields separated by commas. But the problem is that if I don't populate the last field in the string of fields, then I get an extra comma at the end.
=Trim([Q1]+", ") & ([Q2]+", ") & ([Q8]+", ") & ([Q9]+", ") & ([Q11]+", ") & ([Q28]+", ") & [Q29]
---See... if I don't put a value in Q29 then there will be an extra comma on my report.---
Is there a simple way to tell this expression to... delete the last comma OR don't put a comma after the field if the field is blank? I can't use IIf Is Null because I don't thing you can use multiple IIf Is Nulls in one expression. Help.... PS, I tried searching the help files but I don't understand what I should even be asking.
I'VE WORKED MY PROBLEM OUT BY GIVING UP. I'M NOW GOING TO CAPITALIZE THE FIRST CHARACTER OF MY DEFAULT ANSWERS AND USE A PERIOD AT THE END OF EACH FIELD TO LOOK LIKE A SHORT STATEMENT ON MY REPORT... BECAUSE I DON'T HAVE TIME TO RESEARCH THIS ANY LONGER... BUT I'M STILL CURIOUS OF THE ANSWER FOR LEARNING PURPOSES. IF SOMEONE EVEN HAS A LINK TO A HELP FILE, THAT'D BE FABULOUS.
Does anybody know how I would get rid of the last comma in the following expression? Pardon me if I don't use the correct terminology but, I'm creating a report where I'm combining a bunch of fields separated by commas. But the problem is that if I don't populate the last field in the string of fields, then I get an extra comma at the end.
=Trim([Q1]+", ") & ([Q2]+", ") & ([Q8]+", ") & ([Q9]+", ") & ([Q11]+", ") & ([Q28]+", ") & [Q29]
---See... if I don't put a value in Q29 then there will be an extra comma on my report.---
Is there a simple way to tell this expression to... delete the last comma OR don't put a comma after the field if the field is blank? I can't use IIf Is Null because I don't thing you can use multiple IIf Is Nulls in one expression. Help.... PS, I tried searching the help files but I don't understand what I should even be asking.
I'VE WORKED MY PROBLEM OUT BY GIVING UP. I'M NOW GOING TO CAPITALIZE THE FIRST CHARACTER OF MY DEFAULT ANSWERS AND USE A PERIOD AT THE END OF EACH FIELD TO LOOK LIKE A SHORT STATEMENT ON MY REPORT... BECAUSE I DON'T HAVE TIME TO RESEARCH THIS ANY LONGER... BUT I'M STILL CURIOUS OF THE ANSWER FOR LEARNING PURPOSES. IF SOMEONE EVEN HAS A LINK TO A HELP FILE, THAT'D BE FABULOUS.
Last edited: