S
Sunny
Very strange! My application was working fine and suddenly it started the
problem. My problem is comparing value in text box with database table field
value. My textbox format property set with Fixed and with decimal 2. The
value in text box is 100.00 and now one of my table field value is 100.00.
and it can not read both value same. I have following code in my
application:
nFldVal = rs!tblFld ' stores 100.00 in nFldVal
IF txtMyBox <> MyField then
'This code should not execute since both value same. But it display
following value.
MsgBox("Value does not match")
else
MsgBox("Value match")
endif
If I use following code, it works fine.
IF VAL(txtMyBox) <> MyField then
MsgBox("Value does not match")
else
'This time it displays this message
MsgBox("Value match")
endif
What am I doing wrong?
Thanks.
problem. My problem is comparing value in text box with database table field
value. My textbox format property set with Fixed and with decimal 2. The
value in text box is 100.00 and now one of my table field value is 100.00.
and it can not read both value same. I have following code in my
application:
nFldVal = rs!tblFld ' stores 100.00 in nFldVal
IF txtMyBox <> MyField then
'This code should not execute since both value same. But it display
following value.
MsgBox("Value does not match")
else
MsgBox("Value match")
endif
If I use following code, it works fine.
IF VAL(txtMyBox) <> MyField then
MsgBox("Value does not match")
else
'This time it displays this message
MsgBox("Value match")
endif
What am I doing wrong?
Thanks.