Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Access

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-30-2006, 06:01 PM
Novice
 
Join Date: Nov 2006
Posts: 1
Tepin
Default How to extract names from 1 large field

I'm not a programming guru, so use nice small words! <G>

I've got a database where one of the fields is called 'participants'. In that field could be between 1 and 30 names, separated by commas.

What I'm trying to do is write a query/macro/code (whatever works) that will grab the individual names so I can spit them out to a mailmerge to print certificates. I've played with the instring, trim, left & right commands and can't find a combination that will do what I want.

If anyone knows a better forum than 'general' for this question, by all means let me know and I'll post it there.

Thanks in advance...Tepin
Reply With Quote
  #2  
Old 12-04-2006, 10:14 AM
Advanced Beginner
 
Join Date: Dec 2005
Posts: 99
StepUP
Default

In the first place, why do you have just one field that contains what amounts to multiple records? Sounds like poor database design.

If there is nothing you can do about that, you would probably have to write some VBA code to parse through the string one byte at a time looking for the comma.
__________________
John F
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Median and Mode for a large table brandon Access 0 05-08-2008 07:26 AM
relationship window layout is too large to fit in Microsoft sh100 Access 0 12-31-2007 08:12 AM
Extract numbers from text string strored in a field. khabdullah Programming 2 12-23-2007 03:55 PM
Import large txt into access klm127 Import/Export Data 0 04-23-2007 04:22 AM
Quick way to stuff field names into text field kfinpgh Programming 0 01-04-2007 10:13 AM


All times are GMT -8. The time now is 08:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.