Aug 8, 2005 #1 DSburgh MIS May 19, 2005 26 US [MachineXREF] table contains a field for [State] and [Distributor]. I need to make a query to return the [Distributor] and all the states in a single field. For Example: DistA: NC,PA,OH DistB: NC,SC,WV and so on. How do I go about this?
[MachineXREF] table contains a field for [State] and [Distributor]. I need to make a query to return the [Distributor] and all the states in a single field. For Example: DistA: NC,PA,OH DistB: NC,SC,WV and so on. How do I go about this?
Aug 8, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR And what about have a look in the FAQ area ? http://www.tek-tips.com/faqs.cfm?fid=4233 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
And what about have a look in the FAQ area ? http://www.tek-tips.com/faqs.cfm?fid=4233 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Aug 9, 2005 Thread starter #3 DSburgh MIS May 19, 2005 26 US That module works great. I modified the example code to work where the primary key is a string. Would it be worth adding to the FAQ? 'SELECT FamID, 'Concatenate("SELECT FirstName FROM tblFamMem 'WHERE FamID = """ & [FamID] & """)") as FirstNames 'FROM tblFamily Thanks again. Upvote 0 Downvote
That module works great. I modified the example code to work where the primary key is a string. Would it be worth adding to the FAQ? 'SELECT FamID, 'Concatenate("SELECT FirstName FROM tblFamMem 'WHERE FamID = """ & [FamID] & """)") as FirstNames 'FROM tblFamily Thanks again.