keepingbusy
Programmer
Hi
I have a table (MYTABLE) with multiple columns one of which I want to show a certain field if a condition applies or another field if it doesn't.
A field within the table (MYFIELD1) is a numeric field which either contains the number 1 or higher.
Two other fields (MYFIELD2) and (MYFIELD3) are character fields which contain text.
If the record in that table has a number one I want MYFIELD2 to show in let's say column3 of the grid and if the record (MYFIELD1) > 1 I want MYFIELD3 to show in column3 instead of MYFIELD2.
Firstly, is that possible?
Secondly, how do I implement an IIF statement in the controlsource of the grid's column (or is there some other way)?
I am using VFP9
Thank you
Lee
I have a table (MYTABLE) with multiple columns one of which I want to show a certain field if a condition applies or another field if it doesn't.
A field within the table (MYFIELD1) is a numeric field which either contains the number 1 or higher.
Two other fields (MYFIELD2) and (MYFIELD3) are character fields which contain text.
If the record in that table has a number one I want MYFIELD2 to show in let's say column3 of the grid and if the record (MYFIELD1) > 1 I want MYFIELD3 to show in column3 instead of MYFIELD2.
Firstly, is that possible?
Secondly, how do I implement an IIF statement in the controlsource of the grid's column (or is there some other way)?
I am using VFP9
Thank you
Lee