Only export parts of a field in ACCESS

Hello,

I have a long paperless not field and only need certain parts of it is there a way to pull only characters 10-15 say. Or maybe after the first (space)?  Thank you.
WO2015Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
you can use the Left(), Mid() function to extract part of the field

this will give all info after the first space

mid([fieldname], instr([FieldName]," ") +1)

sample
the quick brown fox

will return
quick brown fox

using the mid() function posted above
0
WO2015Author Commented:
Here is what I have, I am having a hard time getting that to work:

The field contains: 9:20 15:22 313/555-5555 P

I need to extract the 15:22 (which is a call duration) for all of my accounts. The 9:20 time may be 10:50 and have an extra character at times, which is why I asked about the (space).

I am getting a sytax error: (comma) in query expression. Below is my build line of logic:

CallLength: (mid([PREVWeekPAPERLESS], instr[PAPERLESS_CMT1]," ")+1)
0
Rey Obrero (Capricorn1)Commented:
try this

 CallLength:Mid([PREVWeekPAPERLESS], InStr([PREVWeekPAPERLESS], " ") + 1, 5)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

WO2015Author Commented:
Worked, thank you!  Just so I understand the code, what does the +1 and ,5 represent?
0
Rey Obrero (Capricorn1)Commented:
+1, to select the character after the space
5 the length of the string you want to get
0
WO2015Author Commented:
Thanks again, have a great day.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.