Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

group with commas 1

Status
Not open for further replies.

hellohello1

Technical User
Jun 30, 2006
110
US
How can I make data that looks like this:

ProjectID......Descr..........................Category
2005.............No Prior Years..............Cost
2005.............Unfunded Need..............Cost
2005.............Missing total..................Cost
2012.............[blank]..........................[blank]
2043.............Cost Var>15%...............Cost
2043.............Underrun .......................Cost
2043.............No storage.....................Org
2056.............Date in past..................Sched
2056.............Date mismatch.............Sched


Into data that looks like this:
ProjectID................Cost.......................................................................Org............................Schedule
2005.....................No Prior Years, Unfunded Need, Missing Total............[blank]........................[blank]
2012.....................[blank]....................................................................[blank].......................[blank]
2043.....................Cost Var>15%, Underrun.........................................No storage.................[blank]
2056.....................[blank]....................................................................[blank].......................Date in past, Date mismatch


I tried a crosstab query with Category for the Column and for the Value, typed: Expr1: First([Descr]) & " ," & Last([Descr]). But I can only do First and/or Last. But what if there are 3 or more values that need to be displayed, such as in ProjectID: 2005 above.

Thanks,
 
You are absolutely the best. It works perfectly.

Thank you so much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top