Extracting a part of a number

G

Guest

I have some numbers that look like this 1234:231. I would like to extract
everything before the ":" and put in one field and everything after and put
in another. Can I do that with numbers?

Thank You
 
T

Tom Lake

"open a adobe file from a command button"
I have some numbers that look like this 1234:231. I would like to extract
everything before the ":" and put in one field and everything after and put
in another. Can I do that with numbers?

Thank You


To get the first part you can use Val([yournumber])

to get the second part

Val(Mid([yournumber], Instr([yournumber], ":") + 1))

where [yournumber] is the field that holds your number (surprise!)

Tom Lake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top