Great community. Great ideas.
Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.
December 8th, 2012, 11:34 PM
Numbers rounding up automatically!!!
I'm running ASP Classic pages on IIS 6.1 on Windows Server 2008 R2, with an MSAccess DB as my backend (don't ask why). Well, all of a sudden, any decimal value entered into any form is being automatically rounded up to the next integer (for example, 1.25 is stored in the DB as 1, and 1.75 is stored at 2). Nothing in my DB has changed for the data type (currently set to Double with 2 decimal places). Nothing complex in the code, not doing any calculations or data/variable manipulations. Here's my actual code:
<input type="text" name="UnitCost" id="UnitCost" size="10" value="<%= (AW_Products.fields.item("UnitCost").value)%>"tabi ndex="9"/>
upd_AW_Products.addColumn "UnitCost", "NUMERIC_TYPE", "POST", "UnitCost"
upd_AW_Products.addColumn "UnitPrice", "NUMERIC_TYPE", "POST", "UnitPrice"
I have multiple sites running on this same environment and they are all doing the same thing. Is there a global variable is IIS or the Server that controls Precision or Scale outside of the database? This is driving me crazy because on the surface it seems like such a simple DB field type issue. Any help would be greatly appreciated.
By Xenieus in forum Visual Basic Programming
Last Post: August 29th, 2012, 10:24 AM
By rsdesign in forum ASP Development
Last Post: March 25th, 2008, 05:10 AM
By noodle_snacks in forum ASP Development
Last Post: July 5th, 2005, 04:23 PM
By Bear505 in forum Microsoft Access Help
Last Post: April 22nd, 2004, 01:09 PM
By hbabir in forum Microsoft Access Help
Last Post: April 21st, 2004, 12:19 PM