terp
Beta Tester Extraordinaire
I am trying to properly add and format a numeric field for dollar amounts/currency-type of entries.
I am assuming, given the use of $ in SQL, that is problematic, as when I tried to set the default of a text field to $ (to show the $ sign proceeds the numeric value), I get 0's in the db for that field and not the currency amount. Therefore, is there a "best practice" for handling currency?
I was going to just use a standard text box set to numeric for a currency field, but in the past, I have had some people enter the $ before the value, some put .00 after the value, etc, etc. I could give instructions in the tooltip (e.g., "Please do not use $ and use whole, real numbers" or something), but wondering how people go about handling currency entries, if this makes any sense.
I do like the $50.95 format to display in the table, as it looks better than 50.95, but not sure the best way to handle the field...welcome any suggestions!
I am assuming, given the use of $ in SQL, that is problematic, as when I tried to set the default of a text field to $ (to show the $ sign proceeds the numeric value), I get 0's in the db for that field and not the currency amount. Therefore, is there a "best practice" for handling currency?
I was going to just use a standard text box set to numeric for a currency field, but in the past, I have had some people enter the $ before the value, some put .00 after the value, etc, etc. I could give instructions in the tooltip (e.g., "Please do not use $ and use whole, real numbers" or something), but wondering how people go about handling currency entries, if this makes any sense.
I do like the $50.95 format to display in the table, as it looks better than 50.95, but not sure the best way to handle the field...welcome any suggestions!