Arg81
Well-known member
hello peeps
I have a grid that lists a number of ingredients used in a recipe.
Now, a column in that grid is called ByProduct. An ingredient is either ByProductA or ByProductZ.
ByProductA overrides Z. I.E. There may be 20 ingredients, 19 are ByProductZ and only 1 is ByProductA.
Therefore the final ByProduct is A, not Z.
What I need to do is write some code that looks through each row of the grid, and if A exists in that column then a label on the form displays Value1. If it doesn't exist the label displays Value2.
I have a grid that lists a number of ingredients used in a recipe.
Now, a column in that grid is called ByProduct. An ingredient is either ByProductA or ByProductZ.
ByProductA overrides Z. I.E. There may be 20 ingredients, 19 are ByProductZ and only 1 is ByProductA.
Therefore the final ByProduct is A, not Z.
What I need to do is write some code that looks through each row of the grid, and if A exists in that column then a label on the form displays Value1. If it doesn't exist the label displays Value2.