A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Creating Multiple Records from Single Delimited Field



 
 
Thread Tools Display Modes
  #1  
Old December 22nd, 2009, 10:31 PM posted to microsoft.public.access.queries
MSJ
external usenet poster
 
Posts: 11
Default Creating Multiple Records from Single Delimited Field

I am working with some data that lists Supervisor Hierarchy in a Pipe
Delimited format and I want to be able to have it show in a query
based on each level of the supervisor.

Example:
Name SupervisorHierarchy
John Smith |White|Lee|Martinez|Scott|
Jim Jones |Clark|Wright|Jackson|Johnson|Hill|Lewis|

Ideally I would like to see
Name Supervisor Level
John Smith White 1
John Smith Lee 2
John Smith Martinez 3
John Smith Scott 4
Jim Jones Clark 1
Jim Jones Wright 2
Jim Jones Jackson 3
Jim Jones Johnson 4
Jim Jones Hill 5
Jim Jones Lewis 6
  #2  
Old December 23rd, 2009, 03:15 PM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Creating Multiple Records from Single Delimited Field

Is there a maximum number of values in the SupervisorHierarchy field? Do you
have a table of every unique last name? What happens if two people have the
same last name?
--
Duane Hookom
Microsoft Access MVP


"MSJ" wrote:

I am working with some data that lists Supervisor Hierarchy in a Pipe
Delimited format and I want to be able to have it show in a query
based on each level of the supervisor.

Example:
Name SupervisorHierarchy
John Smith |White|Lee|Martinez|Scott|
Jim Jones |Clark|Wright|Jackson|Johnson|Hill|Lewis|

Ideally I would like to see
Name Supervisor Level
John Smith White 1
John Smith Lee 2
John Smith Martinez 3
John Smith Scott 4
Jim Jones Clark 1
Jim Jones Wright 2
Jim Jones Jackson 3
Jim Jones Johnson 4
Jim Jones Hill 5
Jim Jones Lewis 6
.

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.