Removing the first four characters from a field.

kharder

Registered User.
Local time
Today, 14:41
Joined
Nov 29, 2005
Messages
13
Hello,

I want to remove the first four characters from a field in a query.

The data are not always the same length, but it will always be the first four.

Example.

vmc_ml120e21/p -> ml120e21/p

Is that possible and how??

Thanks in advance.
 
right([field],len([field])-4) should do the trick I think.
 
Nope, that didn't do the trick. Any other ideas??
I tryed to use it like this: right([MODEL],len([MODEL])-4) is that right??

Thanks,
 
I solved the problem with this Mid([MODEL];5;50).
There isn't any strings there are over 12 char. long.
But I am still interestet in a better solution, because I have to use it later in the same database.
 
kharder said:
Nope, that didn't do the trick. Any other ideas??
I tryed to use it like this: right([MODEL],len([MODEL])-4) is that right??

Thanks,

That should work. Have a look at the attached database. It demonstrates what I've posted.
 

Attachments

I solved the problem with this Mid([MODEL];5;50).
.............
But I am still interestet in a better solution,
Mid([MODEL];5)

which is the best solution.
.
 

Users who are viewing this thread

Back
Top Bottom