Jul 7, 2008 #1 ksbigfoot Programmer Apr 15, 2002 856 CA I have a field of type Double, it originally had 3 decimal places. I changed it to 2 decimal places, but the 3 decimal places are still in the table. How would I change the numbers to 2 decimal places?
I have a field of type Double, it originally had 3 decimal places. I changed it to 2 decimal places, but the 3 decimal places are still in the table. How would I change the numbers to 2 decimal places?
Jul 7, 2008 1 #2 Golom Programmer Sep 1, 2003 5,595 CA Round(TheNumber, 2) - If you want rounding or Int(TheNumber * 100#) / 100# - If you just want to chop Upvote 0 Downvote
Round(TheNumber, 2) - If you want rounding or Int(TheNumber * 100#) / 100# - If you just want to chop
Jul 7, 2008 Thread starter #3 ksbigfoot Programmer Apr 15, 2002 856 CA Howdy Golom, Where would I run this code? Upvote 0 Downvote
Jul 8, 2008 1 #4 JerryKlmns IS-IT--Management Feb 7, 2005 2,062 GR Use an update query UPDATE yourTableName SET yourFieldName = Round(yourFieldName , 2) or UPDATE yourTableName SET yourFieldName = Int(yourFieldName * 100#) / 100# Upvote 0 Downvote
Use an update query UPDATE yourTableName SET yourFieldName = Round(yourFieldName , 2) or UPDATE yourTableName SET yourFieldName = Int(yourFieldName * 100#) / 100#
Jul 8, 2008 Thread starter #5 ksbigfoot Programmer Apr 15, 2002 856 CA Thanks Golom & JerryKlmns, Makes sense now. Thanks again and star to you both. ksbigfoot Upvote 0 Downvote