G
Guest
I have various codes that I'm currently storing as text. However, they only
have a numeric part. The reason I used text is because a number inputted as
009003 would be stored as 9003 if its datatype was a number. The zeros at the
start are actually important to the end user. Obviously, I know that each
code is 6 digits long so could append the zeros for display purposes. Any
ideas how to do this? In Java I cast the number to a String, get the length,
and append the correct number of zeroes. What's the VBA equivalent?
Thanks
Dave
have a numeric part. The reason I used text is because a number inputted as
009003 would be stored as 9003 if its datatype was a number. The zeros at the
start are actually important to the end user. Obviously, I know that each
code is 6 digits long so could append the zeros for display purposes. Any
ideas how to do this? In Java I cast the number to a String, get the length,
and append the correct number of zeroes. What's the VBA equivalent?
Thanks
Dave