Skip to main content
Participant
March 20, 2013
質問

Data Conversion Error

  • March 20, 2013
  • 返信数 2.
  • 1076 ビュー

I have a simple issue where people are doing data entry for numeric data.   The requirement is for them to enter whole numbers without punctation.   Since the data deals with dollars sometimes folks don't read and they want to enter things like dollar sign, comma, and decimal with cents.   This throws a data conversion error as the data is going into a numeric field and not a text field.   What do you do in this case?   I am using Coldfusion 10 with Msft SQL Server 2008.  

Thanks!   NC Beach Bum

このトピックへの返信は締め切られました。

返信数 2

Inspiring
March 20, 2013

Use rereplace() to strip out the unwanted characters.

Participant
March 20, 2013

Yeah,better solution :-)

Participant
March 20, 2013

Could you use in-line validation of the relevant field, highlighting an error when they attempt to add a none numerical figure?