I am trying to update a Yes/No field [fPetersPrize] based on an entry in ComboBox [TxtRank-Rating]. There are 32 entries in the underlying table for TxtRank-Rating of which 10 will make [fPetersPrize] true, the remainder will make it false.
I have placed the following code in the OnChange Event of the [TxtRank-Rating] but every time I run it I get the warning "Block If without End If". I have tried various combinations but end up with the same result.
I'm obviously coding it wrong and would appreciate some help with sorting it out.
Thanks a lot
John
I have placed the following code in the OnChange Event of the [TxtRank-Rating] but every time I run it I get the warning "Block If without End If". I have tried various combinations but end up with the same result.
Code:
If [TxtRank_Rating] = "A/S/LT" Then
[fPetersPrize] = True
If [TxtRank_Rating] = "AB" Then
[fPetersPrize] = True
If [TxtRank_Rating] = "MID" Then
[fPetersPrize] = True
Else
[fPetersPrize] = False
End If
I'm obviously coding it wrong and would appreciate some help with sorting it out.
Thanks a lot
John