G
ges
I try to find the matching data between two listbox.
Example:
ListBoxA.Column(0) Value = 2,5,12,16,25
ListBoxB.Column(0) Value = 3,7,14,16,35
The matching data between listBoxA and listBoxB is "16"
I try to display this in the label.
I create command button, with on click event, as follow:
If ListBoxA.Value = ListBoxB.Value Then
lblShow.Caption = "Matching"
Else
lblShow.Caption = "No Match"
End If
It did not register the same value, it simply show "No Match"
I also try:
If ListBoxA.Column(0).Value = ListBoxB.Column(0).Value Then
lblShow.Caption = "Matching"
Else
lblShow.Caption = "No Match"
End If
It give me an error.
Can someone help me with the syntax? The best if I could just show the data
which is "16 " in the label but if not possible even show either "matching"
or "no match" help a lot.
Thanks in advance for any help.
Ges
Example:
ListBoxA.Column(0) Value = 2,5,12,16,25
ListBoxB.Column(0) Value = 3,7,14,16,35
The matching data between listBoxA and listBoxB is "16"
I try to display this in the label.
I create command button, with on click event, as follow:
If ListBoxA.Value = ListBoxB.Value Then
lblShow.Caption = "Matching"
Else
lblShow.Caption = "No Match"
End If
It did not register the same value, it simply show "No Match"
I also try:
If ListBoxA.Column(0).Value = ListBoxB.Column(0).Value Then
lblShow.Caption = "Matching"
Else
lblShow.Caption = "No Match"
End If
It give me an error.
Can someone help me with the syntax? The best if I could just show the data
which is "16 " in the label but if not possible even show either "matching"
or "no match" help a lot.
Thanks in advance for any help.
Ges