woodman35 Posted October 5, 2011 Posted October 5, 2011 Hello: I need to create a calculation field that takes "Field 1" adds leading 0's based adding up to 8 digits. Must be 8 digits Adds leading 0's assumes two decimal points (last two digits are two decimal points) Filed 1 Caclulation Field 1 = 00000100 1.2 = 00000120 12 = 00001200 120 = 00012000 120.50 = 00012050 Thanks for any help, I'm stumped. JW
Fitch Posted October 5, 2011 Posted October 5, 2011 Right( "00000000" & (Field1 * 100) ; 8 ) Make sure to specify the result as text. Number fields ignore leading zeros. 1
woodman35 Posted October 5, 2011 Author Posted October 5, 2011 Thanks sooooo much. That Right trim part is what I was missing. JW
Recommended Posts
This topic is 4806 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now