Link to home
Start Free TrialLog in
Avatar of b001
b001Flag for Afghanistan

asked on

IF statement not working Visual Studio

Hi Expert

I am trying to use IF        then               End if
the following code is not working
       If grid3.Rows(intcount).Cells.Item("a3").Value = "'" & TextBox3.Text & "'" THEN
        MSGBOX("OK")
       END IF
I have looked at the value return
        grid3.Rows(intcount).Cells.Item("a3").Value
returns          ABSS
AND
           "'" & TextBox3.Text & "'"
RETURNS           ''ABSS'

Values are different


PLEASE HELP
THANKS
ASKER CERTIFIED SOLUTION
Avatar of a_hassaan
a_hassaan
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial