Sniper-BoOyA-
Registered User.
- Local time
- Today, 10:52
- Joined
- Jun 15, 2010
- Messages
- 204
Good Morning,
I am working on a report. The report as a query as a source, and from that query i would like to use the following data:
PercentageAsphalt
PercentageSand
PercantageBrokenStab
PercantageCement
These fields represent the composition of a sample used in the lab.
At this point, they have the following value:
PercentageAsfalt PercantageSand PercentageBrokenStab PercentageCement
------------------------------------------------------------------------------
............0................ 100......................... 0............................. 4
When i present these fields on my form, it will look like this:
............0 % + ............100 % + ................0 % + .....................4 %
Which looks messy. Therefore i would like to hide the labels if the value of the field is 0.
Lets say, PercentageAsfalt is 0. Then i have to hide the field, the "%" and the "+".
If i do that for Percentage BrokenStab aswell, the report will look like this:
....................................100 % +..............................................4%
A lot of empty spaces, which is not ideal.
My question is:
Is it posible to look at the value of the fields, if not 0 then put it in a String (with the "%"and the "+"), and finally add one single textbox or label on the report, and say
me.textbox = string ?
Or is there an other way to do this?
Thanks in advance!
I am working on a report. The report as a query as a source, and from that query i would like to use the following data:
PercentageAsphalt
PercentageSand
PercantageBrokenStab
PercantageCement
These fields represent the composition of a sample used in the lab.
At this point, they have the following value:
PercentageAsfalt PercantageSand PercentageBrokenStab PercentageCement
------------------------------------------------------------------------------
............0................ 100......................... 0............................. 4
When i present these fields on my form, it will look like this:
............0 % + ............100 % + ................0 % + .....................4 %
Which looks messy. Therefore i would like to hide the labels if the value of the field is 0.
Lets say, PercentageAsfalt is 0. Then i have to hide the field, the "%" and the "+".
If i do that for Percentage BrokenStab aswell, the report will look like this:
....................................100 % +..............................................4%
A lot of empty spaces, which is not ideal.
My question is:
Is it posible to look at the value of the fields, if not 0 then put it in a String (with the "%"and the "+"), and finally add one single textbox or label on the report, and say
me.textbox = string ?
Or is there an other way to do this?
Thanks in advance!