I would like to create a calculated field in a query that returns different values based on values of other fields. I did not succeed in entering a conditional statement in the query grid. For example, here are my fields and values:
Fld1 Fld2 Fld3 Calculated(conditional)
-1 0 0 "Text1"
0 -1 0 "Text2"
0 0 -1 "Text3"
0 -1 0 "Text2"
In essence my calculated filed will be running a conditional test like
IF Fld1.Value = -1 then
calculated = "Text1"
Elseif Fld2.Value = -1 then
calculated = "Text2"
...........etc
Is this possible? How?
Fld1 Fld2 Fld3 Calculated(conditional)
-1 0 0 "Text1"
0 -1 0 "Text2"
0 0 -1 "Text3"
0 -1 0 "Text2"
In essence my calculated filed will be running a conditional test like
IF Fld1.Value = -1 then
calculated = "Text1"
Elseif Fld2.Value = -1 then
calculated = "Text2"
...........etc
Is this possible? How?