In the MS Access 2007 project, I have a report with the following record source:
SELECT SomeTable.SomeCol FROM SomeTable;
SomeCol must be 1, 2, 3, 6, or 9 digits long.
First, take 3, 6, and 9. Let's say that 123 - this should remain like 123 . If it is 123456 , this should be changed to 123.456 . If it is 123456789 , this should be changed to 123.456.789 . If it is 1 or 65 , it should be changed to 001 and 065 respectively.
How can I change my SELECT to make these changes? If the length is not 1, 2, 3, 6, or 9, the line should remain unchanged.
Thanks!
Danny beckett
source share