Hi
Is there a query that first finds out whether a field is null that then goes in to more If functions?
This is what I have at the moment:
this code works fine, but if delete what is in the mixed field, it automatically places 75% in the mixed_ratio field, which is not what I want. What I want is for the mixed_ratio field to be null if the mixed field is null.
I have tried putting an If Function at the beginning that says If mixed = Not Null then do this and this etc etc and finish it with mixed_ratio = Null but it doesn't seem to work and also stops the rest of the If Functions happening.
Anyone got any ideas?
Is there a query that first finds out whether a field is null that then goes in to more If functions?
This is what I have at the moment:
Code:
If mixed = "town centre" then
mixed_ratio = "25%"
else
If mixed = "employment" then
mixed_ratio = "100%"
else
mixed_ratio = "75%"
end if
end if
this code works fine, but if delete what is in the mixed field, it automatically places 75% in the mixed_ratio field, which is not what I want. What I want is for the mixed_ratio field to be null if the mixed field is null.
I have tried putting an If Function at the beginning that says If mixed = Not Null then do this and this etc etc and finish it with mixed_ratio = Null but it doesn't seem to work and also stops the rest of the If Functions happening.
Anyone got any ideas?