Consulting

Results 1 to 2 of 2

Thread: Verify data is the same or not

  1. #1

    Verify data is the same or not

    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

    [VBA]If cboCity.Value = cboCntry.Value Then
    msgbox "Same"
    else
    msgbox "Not Same"
    end if[/VBA]

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Sure they are exactly the same, no extra spaces anywhere?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •