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 18.104.22.168 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 22.214.171.124 it produces the msgbox "error duplicate" where the result should be "Good" can someone help me out thanks.