N
neeraj
I am creating a new field say, NewField in a query which uses other fields.
I want the logic to be like this:
If Field1=val1 and Field2=val2 and Field3=val3 then NewField = val1-val2
If Field1=val1 and Field2=val2 and Field3=val4 then New Field = val1-val2/100
If Field1=val1 and Field2=val2 and Field3=val5 then New Field = val5*val2
Basically, val1 and val2 dont change and Field 3 is like a case statement
and depending upon the case value, the operation for calculation of NewField
changes. How can I create this NewField in Access
I want the logic to be like this:
If Field1=val1 and Field2=val2 and Field3=val3 then NewField = val1-val2
If Field1=val1 and Field2=val2 and Field3=val4 then New Field = val1-val2/100
If Field1=val1 and Field2=val2 and Field3=val5 then New Field = val5*val2
Basically, val1 and val2 dont change and Field 3 is like a case statement
and depending upon the case value, the operation for calculation of NewField
changes. How can I create this NewField in Access