terp_in_umcp
04-09-2007, 11:03 PM
Heres the situation:
In my column in the database, the value is either "NEW" or "NEW "....notice the 2 extra spaces at the end...so when I do a condition check, it works for those tht have "NEW" btu doesnt if its "NEW "
Is there some TRIM function to get rid of the 2 spaces when they appear...
mysql="SELECT * FROM Test WHERE number='10'"
Set rs= Con.Execute( mySQL )
if rs("status")="NEW" then
...
else
...
end if
A silly fix that I did is just put an or rs("status")="NEW " in it...any better ideas???
In my column in the database, the value is either "NEW" or "NEW "....notice the 2 extra spaces at the end...so when I do a condition check, it works for those tht have "NEW" btu doesnt if its "NEW "
Is there some TRIM function to get rid of the 2 spaces when they appear...
mysql="SELECT * FROM Test WHERE number='10'"
Set rs= Con.Execute( mySQL )
if rs("status")="NEW" then
...
else
...
end if
A silly fix that I did is just put an or rs("status")="NEW " in it...any better ideas???