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  

concat strings on sum query



 
 
Thread Tools Display Modes
  #1  
Old November 5th, 2004, 10:00 PM
Mike
external usenet poster
 
Posts: n/a
Default concat strings on sum query

I need to write a sum query however one of the fields needs to be a
concatenation of the detail records.
for example
bob 10
chuck 20

would come back as
bob/chuck 30

I'm wondering if there is a way to do it with the query designer rather than
creating an ado recordset and manually sequencing through the records
thanks
  #2  
Old November 6th, 2004, 12:46 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

What do you want to do if you have 100 Records? 100 names separated by "/"?

--
HTH
Van T. Dinh
MVP (Access)


"Mike" wrote in message
...
I need to write a sum query however one of the fields needs to be a
concatenation of the detail records.
for example
bob 10
chuck 20

would come back as
bob/chuck 30

I'm wondering if there is a way to do it with the query designer rather

than
creating an ado recordset and manually sequencing through the records
thanks



  #3  
Old November 6th, 2004, 01:25 AM
Mike
external usenet poster
 
Posts: n/a
Default

In this particular case we know each string is 4 char long ( incld seperator
) and that there won't be more than 4 distinct detail records. But for the
general case you make a good point.

I was able to figure something out that works and wasn't too complicated so
I don't need a solution anymore


I hate replacing published reports, they have to be just 'so'


"Van T. Dinh" wrote:

What do you want to do if you have 100 Records? 100 names separated by "/"?

--
HTH
Van T. Dinh
MVP (Access)


"Mike" wrote in message
...
I need to write a sum query however one of the fields needs to be a
concatenation of the detail records.
for example
bob 10
chuck 20

would come back as
bob/chuck 30

I'm wondering if there is a way to do it with the query designer rather

than
creating an ado recordset and manually sequencing through the records
thanks




  #4  
Old November 6th, 2004, 08:16 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

I have just spent 3-4 days to do a Report with up to 10 SubReports and the
SubReports have snaking columns down and then across so that it looks like
an old print-out from Excel.

--
HTH
Van T. Dinh
MVP (Access)




"Mike" wrote in message
...
In this particular case we know each string is 4 char long ( incld

seperator
) and that there won't be more than 4 distinct detail records. But for

the
general case you make a good point.

I was able to figure something out that works and wasn't too complicated

so
I don't need a solution anymore


I hate replacing published reports, they have to be just 'so'




 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM
Union Query Not Returning A Value Jeff G Running & Setting Up Queries 2 October 19th, 2004 05:47 PM
Return repeats info in "8s" Joy Rose Running & Setting Up Queries 14 October 13th, 2004 10:07 PM
Too Few Parameters error Mail Merge Access Parameter Query Tony_VBACoder Mailmerge 3 September 14th, 2004 12:15 PM
Query to join records form 2 databases bdehning General Discussion 5 August 9th, 2004 03:09 PM


All times are GMT +1. The time now is 08:30 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.