Skip to main content
Participant
March 20, 2013
Question

Data Conversion Error

  • March 20, 2013
  • 2 replies
  • 1069 views

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

This topic has been closed for replies.

2 replies

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?