Skip to main content
Participant
Mar 20, 2013 6:24 AM UTC
Question

Data Conversion Error

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
Mar 20, 2013 11:58 AM UTC

Use rereplace() to strip out the unwanted characters.

Translate
Participant
Mar 20, 2013 12:01 PM UTC

Yeah,better solution :-)

Translate
Participant
Mar 20, 2013 11:24 AM UTC

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

Translate