newcoder1010 Posted April 14, 2015 Share Posted April 14, 2015 Hi, I am reading a value from excel and then reading another value from database. After that, I am comparing. Excel returns: value - Empty and data type User - Defined. Database returns a vaue - NULL and data type User - Defined. After that, I compared both as IF EXCEL = DB THEN MSGBOX "EQUAL"ELSE MSGBOX "NOT EQUAL"END IF I was expecting EQUAL message to be displayed but I am getting NOT EQUAL message. Can you please help? Thanks, N Link to comment Share on other sites More sharing options...
justsomeguy Posted April 14, 2015 Share Posted April 14, 2015 You'll probably need to normalize the values by converting both of them to a common value before comparing them. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now