Hi GP
IIf Function if to filter your data into a new field. If you have a condition and your data should be accordingly, you can use IIf function.
e.g. a field with some figures . In a new field If the first field contains 1 put a specific value let us 2 otherwise, put 3
so you put the code as follows:
If Me.FirstField = 1 Then
me.SecondField = 4
Else
Me.SecondField = 3
End If
If - Then - End If is always together..
HTH