Jun 9, 2005 #1 SteveW99 MIS Mar 11, 2004 9 GB Our data entry is not consistent and contains fields such as 'H1345' and '1345/'. How can I separate the numeric parts to yield '1345' in both cases?
Our data entry is not consistent and contains fields such as 'H1345' and '1345/'. How can I separate the numeric parts to yield '1345' in both cases?
Jun 9, 2005 1 #2 Naith Programmer May 14, 2002 2,530 GB Do you have any instances with non-numeric strings at both the beginning and the end of the field, and numbers you want to extract inbetween? Upvote 0 Downvote
Do you have any instances with non-numeric strings at both the beginning and the end of the field, and numbers you want to extract inbetween?
Jun 9, 2005 Thread starter #3 SteveW99 MIS Mar 11, 2004 9 GB The strings typically start with either a non numeric or a numeric and end with a non numeric Upvote 0 Downvote
Jun 9, 2005 #4 Naith Programmer May 14, 2002 2,530 GB Code: If Val({YourField}) = 0 Then CDbl(StrReverse(ToText((Val(StrReverse({Your.Field}))),0,""))) Else Val({Your.Field}) Upvote 0 Downvote
Code: If Val({YourField}) = 0 Then CDbl(StrReverse(ToText((Val(StrReverse({Your.Field}))),0,""))) Else Val({Your.Field})