G
Guest
I have a field of SIC Codes with an additional four numbers/characters added
to the end of the number. Is there a way I can strip or delete the last four
characters? Since all of the numbers do not have the same amount of
characters I can't use the MID function. Some data is 6 or 7 or 8 characters
long. So I need to work from the right and delete the last four numbers only.
Am I making sense?
Perhaps I could determine the number of characters first and then perform a
MID statement based on the number of characters in the field? Like 'if field
is x then do aMID, if field is y then do bMID' ? Is that possible?
I'm lost. Any help is much appreciated.
to the end of the number. Is there a way I can strip or delete the last four
characters? Since all of the numbers do not have the same amount of
characters I can't use the MID function. Some data is 6 or 7 or 8 characters
long. So I need to work from the right and delete the last four numbers only.
Am I making sense?
Perhaps I could determine the number of characters first and then perform a
MID statement based on the number of characters in the field? Like 'if field
is x then do aMID, if field is y then do bMID' ? Is that possible?
I'm lost. Any help is much appreciated.