hey guys i have been troubled by this for quite some time now. i have this example code in the command button.
Dim ctr As Integer, ctr2 As String
ctr2 = lst1.ListCount
x = Val(txt1.Text)
For ctr = 0 To ctr2
If x = Val(lst1.List(ctr)) Then
MsgBox "Error Duplicate"
i have a textbox where if it has the same value like for example 188.8.131.52 it will produce error duplicate as seen in my code else it will produce the message box "Good". but everytime i enter a text for example 184.108.40.206 it produces the msgbox "error duplicate" where the result should be "Good" can someone help me out thanks.