M
myxmaster
When I select an option I get the following message" Compile Error,
Block If Without End If". I am not sure exactly what is wrong. Can you
please review the following code and tell me where the error is.
Private Sub Filter_Options_AfterUpdate()
If FilterOptions = 1 Then
Me.Filter = "Category = 'Credit'"
Me.FilterOn = True
Else
If FilterOptions = 2 Then
Me.Filter = "Category = 'Check'"
Me.FilterOn = True
Else
If FilterOptions = 3 Then
Me.Filter = "Category = 'Certergy'"
Me.FilterOn = True
Else
If FilterOptions = 4 Then
Me.Filter = "Category = 'Money'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
TIA
Block If Without End If". I am not sure exactly what is wrong. Can you
please review the following code and tell me where the error is.
Private Sub Filter_Options_AfterUpdate()
If FilterOptions = 1 Then
Me.Filter = "Category = 'Credit'"
Me.FilterOn = True
Else
If FilterOptions = 2 Then
Me.Filter = "Category = 'Check'"
Me.FilterOn = True
Else
If FilterOptions = 3 Then
Me.Filter = "Category = 'Certergy'"
Me.FilterOn = True
Else
If FilterOptions = 4 Then
Me.Filter = "Category = 'Money'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
TIA