kevlray
Registered User.
- Local time
- Today, 08:55
- Joined
- Apr 5, 2010
- Messages
- 1,045
So I have some code that is most of the time a number, but sometimes be a string (i.,e "1000000" or "<1000000"). But I have to compare to a number (i.e, 600000). The values come from an MS-SQL back end. I tried using Format() (i.e, Format(rst!.DMSCC.Value, "#########") ) and compare that to "600000". So the compare (If statement) comes back false when rst!.DMSCC.Value = "1000000" for the statement IF Format(rst!.DMSCC.Value, "#########") > "600000".
Since I cannot count on the rst!.DMSCC.Value always to evaluate to a number (i.e, "<1000000"), I am not certain what using VAL would do.
Since I cannot count on the rst!.DMSCC.Value always to evaluate to a number (i.e, "<1000000"), I am not certain what using VAL would do.