Mark Appleby Posted December 11, 2002 Posted December 11, 2002 I am having trouble. Can anyone help me? Simply, I need to take a field that is my supplier style referance and re calcualte it without any spaces or non alpha numeric characters. I mean remove verything that is not from a...Z and 1...0. An example would be changing (a4.32 1 /3) to (A43213) Can I do this some way? I look faorward to your help.
kenneth2k1 Posted December 11, 2002 Posted December 11, 2002 Well, how about a calc field that evaluates the Reference # field and substitutes out those characters? You will need two fields, I will call them RefNo and RefNoCalc RefNo is a text field that contains the reference number from the supplier. RefNoCalc will be a calc field: Substitute(Substitute(Substitute(RefNo, "/" , ""), "." , ""), "-", "") Do not store calc. You can nest more substitutions if there are more symbols. You can sub out spaces in the same manner, using " " , "" Have fun Ken
Mark Appleby Posted December 12, 2002 Author Posted December 12, 2002 Kenneth, Thanks for the help, you have saved me many hours of keyboard plugging and tought me about the substitute function, which I never used before! We learn something new every day.
Recommended Posts
This topic is 8356 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now