hi guys im trying to create a loop where it goes through the authority fields without entering in each field. If it is the same then it should come up with a message. At the moment it works as the following:
Dim row1 As String
Dim row2 As String
Dim row3 As String
Dim row4 As String
row1 = Form_Authorities.Authority_1
row2 = Form_Authorities.Authority_2
row3 = Form_Authorities.Authority_3
row4 = Form_Authorities.Authority_4
If Form_Authorities.Authority_5 = row1 Or row2 Or row3 Or row4 Then
MsgBox ("The Authority has already been chosen")
End If
is there a simpler way??
thanks
Dim row1 As String
Dim row2 As String
Dim row3 As String
Dim row4 As String
row1 = Form_Authorities.Authority_1
row2 = Form_Authorities.Authority_2
row3 = Form_Authorities.Authority_3
row4 = Form_Authorities.Authority_4
If Form_Authorities.Authority_5 = row1 Or row2 Or row3 Or row4 Then
MsgBox ("The Authority has already been chosen")
End If
is there a simpler way??
thanks