By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,400 Members | 981 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,400 IT Pros & Developers. It's quick & easy.

split information in fields

P: n/a
In my accesstable i have one field with two numbers separated by a slash
(i.e. 753/999).
I want to store the number before the slash (could be between 1 and 10
digits) in a field called "F1" and the number after the slash (could be
between 1 and 10 digits) in another field called "F2".
I have tried with right, left and len functions but I cannot make it work
the way I want.
If somebody could help me with some code to make this work I would be most
greatfull.
Best regards
Orjan
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Fri, 04 Jun 2004 10:28:16 GMT, "Orjan" <or************@sparay.se>
wrote:
In my accesstable i have one field with two numbers separated by a slash
(i.e. 753/999).
I want to store the number before the slash (could be between 1 and 10
digits) in a field called "F1" and the number after the slash (could be
between 1 and 10 digits) in another field called "F2".
I have tried with right, left and len functions but I cannot make it work
the way I want.
If somebody could help me with some code to make this work I would be most
greatfull.
Best regards
Orjan


?Left("753/999",InStr(1,"753/999","/")-1)
753

?Right("753/999",Len("753/999")-InStr(1,"753/999","/"))
999

Of course substitute the correct reference for the literal strings.

- Jim
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.