Results 1 to 2 of 2
  1. #1
    FormerJarHead is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    52

    Crosstab results: Numeric vs Text

    Hi all,



    I have a crosstab query that gets its data from a select query. (3) Row Headings - (1) Column and (1) Value Heading. All works great except my Volunteer Row. In the report this query is based on, Volunteer is displayed as the VolID rather than the Volunteer name.

    Code:
    TRANSFORM Count(qryVolunteerVisit.LengthofVisit) AS CountOfLengthofVisit
    SELECT qryVolunteerVisit.Group, qryVolunteerVisit.Volunteer, Count(qryVolunteerVisit.LengthofVisit) AS [Total Of LengthofVisit]
    FROM qryVolunteerVisit
    GROUP BY qryVolunteerVisit.Group, qryVolunteerVisit.Volunteer
    PIVOT Format([DateIn],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
    Is there a way, with what I have, to display the Volunteers name rather than the VolID. In the Select query, I've joined first and last names, Volunteer:[FirstName]&" "&[LastName].

    Thank you for any help you can throw my way...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Include the constructed VolName field in the SELECT and GROUP BY clauses or join the CROSSTAB to the volunteer table to retrieve the names.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 09-25-2011, 08:52 AM
  2. Numeric vs. Text
    By Niki in forum Access
    Replies: 4
    Last Post: 06-10-2011, 01:28 AM
  3. Linked file text/numeric filter performance
    By awc109 in forum Import/Export Data
    Replies: 0
    Last Post: 04-19-2011, 11:02 AM
  4. Justify numeric text field
    By tpcervelo in forum Queries
    Replies: 2
    Last Post: 01-27-2011, 03:50 PM
  5. Split Numeric Data out of Irregular Text Field
    By nathanielban in forum Queries
    Replies: 6
    Last Post: 12-21-2010, 10:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums