Extracting numerical content from alpha/numerical string****Resolved
I need to extract the numerical content of an alpha numerical string and find the highest value.
The strings are either 6 or 7 characters in length with the first five characters always being alpha e.g(elect1 or elect15).
I've tried using Val(fieldname) but this doesn't work it returns a zero everytime even though the numeric content of the string is between 1 and 99.
I've also tried to use the CdBl function but this returns an error all the time.
Is there an easy way to do this?
thanks
JFK