Barcode Scanner If-Then

I’m using the barcode scanner to scan medications.
If the NDC of the medication matches the NDC that is expected, the user should get the message that they chose the correct medication.
But even though my if-then condition is met, the ‘else’ statement is executed and the user is told they have the wrong medication.
Here is the code. Below is the msgbox giving the wrong message.
You can see the NDC on the pop up is identical to the NDC in code.

wrap the text in your comparison in quotes: .text = “your number here”. The way you’ve got it right now, I’m pretty sure it’s trying to compare a string to a number, which won’t work.

Eric

Thx.