you can use the instr() function todo this
the parameters for the function are (starting position, string value, # characters)
you can also use
left(string value, # characters)
mid(string value, start point, # characters)
right(string value, # characters)
in this case you would use
strNewString = right(strInputString, 7)
you may need to use the dollar sign character:
strNewString = right$(strInputString, 7)
then use an append query to insert the value using the return value
if the length of the number is not constant, this makes things more complicated, let me know if this answers your question, ill have more time later to provide a more detailed answer
cheers
scott
|