Quantcast
Viewing all articles
Browse latest Browse all 5794

Number Format $ , Conversion Error

I have a project where I am dealing with around 200 data entry variables.   I put notices everywhere not to use punctation but folks do love to input $ and commas which of course throws the error  "Error converting data type varchar to numeric." I have tried every trick I can find but it does not catch the $ and comma entery.   This is my latest effort.   The SQL type is numeric(10,0).   What have I missed?  What am I doing wrong?   Very frustrated with this!


<cfinput type="text" name="GFA" value="#NumberFormat(GFA)#" size="9"  Message="Round to whole dollars no punctuation" ValidateAt="onsubmit" Validate="integer">

 

Thanks for your time. 


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>