Hello Everyone,
Within an update query, I need to set up a formula that will analyze a field's data and a) leave it as is if there are 3 or less characters or b) append a "-" after the third character, when there are 4 characters present or c) append a "-" after the third character and a "0" at the end, when there are 5 characters. While I know how to word the conversion of the data, I'm unaware of a function which can determine the # of characters in a field. Is there such a function?
Here's an example of the data in the field and how it should look after conversion;
"G" needs to remain "G"
"A66" needs to remain "A66"
"D15A" needs to become "D15-A"
"B32A1" needs to become "B32-A10"
If you know of a function or if you think there is a better way to go about this without counting the characters, please let me know.
Thanks for any help you can provide.
Within an update query, I need to set up a formula that will analyze a field's data and a) leave it as is if there are 3 or less characters or b) append a "-" after the third character, when there are 4 characters present or c) append a "-" after the third character and a "0" at the end, when there are 5 characters. While I know how to word the conversion of the data, I'm unaware of a function which can determine the # of characters in a field. Is there such a function?
Here's an example of the data in the field and how it should look after conversion;
"G" needs to remain "G"
"A66" needs to remain "A66"
"D15A" needs to become "D15-A"
"B32A1" needs to become "B32-A10"
If you know of a function or if you think there is a better way to go about this without counting the characters, please let me know.
Thanks for any help you can provide.