I use Access 2003 and have come across a formatting problem in a report.
I have fields [Country] and [Population]. I created new fields [=Sum([Population])] and [=Count([Population})] which I named SumPopulation and CountPopulation.
For each country, I want to have the report print:
The population of XXX is YYY and this is ZZZ% of the total.
so I've tried:
="The population of " & [Country] & " is " & [Population] & " and this is " & ([Population]/[SumPopulation]) & " of the total."
The problem that I have is that I can't make the ([Population]/[SumPopulation]) retain a percentage format. It reverts to decimal. Even if I calculate the percentage and use a hidden field (such as a field called [Percentage] which I format correctly), the formatting isn't retained when I add it to the string that I want to print.
I hope this makes sense! Is there any way to do what I want?
I have fields [Country] and [Population]. I created new fields [=Sum([Population])] and [=Count([Population})] which I named SumPopulation and CountPopulation.
For each country, I want to have the report print:
The population of XXX is YYY and this is ZZZ% of the total.
so I've tried:
="The population of " & [Country] & " is " & [Population] & " and this is " & ([Population]/[SumPopulation]) & " of the total."
The problem that I have is that I can't make the ([Population]/[SumPopulation]) retain a percentage format. It reverts to decimal. Even if I calculate the percentage and use a hidden field (such as a field called [Percentage] which I format correctly), the formatting isn't retained when I add it to the string that I want to print.
I hope this makes sense! Is there any way to do what I want?