PDA

View Full Version : Verify data is the same or not



av8tordude
08-11-2011, 01:32 PM
I have this code in a userform button that is check if the data in the combo boxes are the same, but it does not seem to work. I believe it written correctly, but I could be wrong. Can someone assist. Thanks

If cboCity.Value = cboCntry.Value Then
msgbox "Same"
else
msgbox "Not Same"
end if

Bob Phillips
08-11-2011, 02:44 PM
Sure they are exactly the same, no extra spaces anywhere?