Hi all..
This is a first time post. Here is my problem. I have a bunch of preexisting records with a field called "ID" The data in the field has varying lengths such as:
1
12
123
1234
etc.
I would like to write a function that looks at this field and then transforms it to fit the format
00000000"-000". I have an idea that I could accomplish this using the len function and then looping it and adding a zero each time until len=8, and then concatenate the trailing piece, but I am not good enough w/ VBA to accomplish this. Any advice would be appreciated.
Thanks,
Griz
This is a first time post. Here is my problem. I have a bunch of preexisting records with a field called "ID" The data in the field has varying lengths such as:
1
12
123
1234
etc.
I would like to write a function that looks at this field and then transforms it to fit the format
00000000"-000". I have an idea that I could accomplish this using the len function and then looping it and adding a zero each time until len=8, and then concatenate the trailing piece, but I am not good enough w/ VBA to accomplish this. Any advice would be appreciated.
Thanks,
Griz