TheBlondOne
Programmer
Ok this is probably simple but its early Monday morning and i just don't understand it ,
What i've got is a table in SQL with 3 columns, the first colum is ID, the second column is description and the third column is value.
In my report i've got several text boxes which I need to display the value from the description column if the ID column is a certain number
i.e
=iif(Fields.ID.Value = 1, Fields!Description.Value,"")
This is the code i'd expected to be able to insert into the first text box to return te first description value.
in the second text box i've put
=iif(Fields.ID.Value = 2, Fields!Description.Value,"")
and so on through the remaining text boxes.
The problem i've got is that the code is only working for the final text box, i.e the very last row in the table, so the code
=iif(Fields.ID.Value = 20, Fields!Description.Value,"")
actualy returns the correct value but the others do not return anything.
Has anyone got any ideas as to why this isn't working or what i'm doing wrong.
TIA
-Steve
"if at first you don't succeed, sky diving is not for you"!!! )
What i've got is a table in SQL with 3 columns, the first colum is ID, the second column is description and the third column is value.
In my report i've got several text boxes which I need to display the value from the description column if the ID column is a certain number
i.e
=iif(Fields.ID.Value = 1, Fields!Description.Value,"")
This is the code i'd expected to be able to insert into the first text box to return te first description value.
in the second text box i've put
=iif(Fields.ID.Value = 2, Fields!Description.Value,"")
and so on through the remaining text boxes.
The problem i've got is that the code is only working for the final text box, i.e the very last row in the table, so the code
=iif(Fields.ID.Value = 20, Fields!Description.Value,"")
actualy returns the correct value but the others do not return anything.
Has anyone got any ideas as to why this isn't working or what i'm doing wrong.
TIA
-Steve
"if at first you don't succeed, sky diving is not for you"!!! )