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

How to Keep Only the First Value in a Comma Delineated String

P: n/a
Hi there,

In a textbox containing a string of ID numbers each separated by a
comma, how can I keep only the first value, and then remove all of the
other numbers and commas behind it? The first value may contain 1 or
2 or more characters.

Thanks much,
Eric

Jul 16 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
FirstValue = Left([NameOfTextbox],Instr([NameOfTextbox],",")-1)

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com


"Arnold" <er*********@yahoo.comwrote in message
news:11**********************@n2g2000hse.googlegro ups.com...
Hi there,

In a textbox containing a string of ID numbers each separated by a
comma, how can I keep only the first value, and then remove all of the
other numbers and commas behind it? The first value may contain 1 or
2 or more characters.

Thanks much,
Eric

Jul 16 '07 #2

P: n/a
Thanks!

Jul 16 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.