[mso] Re: [SPAM?:###] Re: Access Concatenate :VSMail mx3

I played around with crosstab queries when I first started the project.  If I 
needed to run 200 letters, each person is going to have any combination of 
between 1 and 15 awards out of  about 150 possible.  Does that mean I need 150 
column headers for the crosstab?  award1     award2   award75    award 150  ?  
Isn't there a limite (255 characters?) to the size of a string?

        -----Original Message----- 
        From: Colli, Anthony G [mailto:Anthony.Colli@xxxxxxx] 
        Sent: Fri 6/27/2003 3:26 PM 
        To: mso@xxxxxxxxxxxxx 
        Cc: 
        Subject: [mso] Re: [SPAM?:###] Re: Access Concatenate :VSMail mx3
        
        

        /g
         Taking James's suggestion you could do this if your tables are similar 
to this schema.
        
        The users
        ID      fname           lname           award
        1       John            Smith           1
        2       John            Smith           2
        3       John            Smith           3
        4       John            Smith           4
        5       Amanda  HugnKiss        2
        6       Amanda  HugnKiss        5
        
        The awards
        ID      Award
        1       award1
        2       award2
        3       award3
        4       award4
        5       award5
        
        A cross tab query named qryCrossAwards
        TRANSFORM [award].[Award]
        SELECT [users].[fname], [users].[lname]
        FROM users INNER JOIN award ON [users].[award]=[award].[ID]
        GROUP BY [users].[fname], [users].[lname]
        PIVOT [award].[Award];
        
        and then a query of the cross tab query
        SELECT qryCrossAwards.fname, qryCrossAwards.lname, [award1] & " " & 
[award2] & " " & [award3] AS Awards
        FROM qryCrossAwards;
        
        This might get you close to the desired result. Then if this works you 
can write a function that will remove all the extra spaces put in by & " " & in 
the query.
        
        -Anthony
        
        -----Original Message-----
        From: James LaBorde [ mailto:jlaborde@xxxxxxxxx]
        Sent: Friday, June 27, 2003 12:18 PM
        To: 'mso@xxxxxxxxxxxxx'
        Subject: [mso] Re: [SPAM?:###] Re: Access Concatenate :VSMail mx3
        
        
        Glenda,
        
        There are a couple of options, none of them pretty.  What is the maximum
        number of awards that can be won by an individual?  Or is there?  You 
may
        need to do a CrossTab query and then write some code to run through that
        result set and concatenate whatever fields may be in there for each
        competitor.
        
        
        
        
        *************************************************************
        You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx 
or MicrosoftOffice@xxxxxxxxxxxxxxxx
        
        To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
        
        To Unsubscribe from this group, send an email to
        mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the 
quotes) in the subject line.
        
        Or, visit the group's homepage and use the dropdown menu.  This will 
also allow you to change your email settings to digest or vacation (no mail).
        http://www.freelists.org/webpage/mso
        
        To be able to use the files section for sharing files with the group, 
send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an 
invitation with instructions.  Once you are a member of the files group, you 
can go here to upload/download files:
        http://www.smartgroups.com/vault/msofiles
        *************************************************************
        

-- Binary/unsupported file stripped by Ecartis --
-- Type: application/ms-tnef
-- File: winmail.dat


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: