Results 1 to 5 of 5
  1. #1
    WickidWe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    123

    Report Grouped By First Leter Of a Name

    Hi,
    I would like to make a report with the following from a query
    Name, EmpNo, and Function
    I need the report to group the Names by the first letter of name and in the heading only show the first letter for that group.

    example:

    Name EmpNo Function

    A

    Andrew 111111 Trainer


    Amanda 222222 Floor Manager
    Amy 1212121 Fork Lift

    B

    Ben 21212121 bla bla
    Bill 33333333 bla bla
    Bob 23232323 bla bla

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    In your query, create a Calculated field that takes just the first letter of your Name field, i.e.
    Code:
    FirstLetter: Left([NameField],1)
    Then, you can use this field on your Report for Grouping purposes.

  3. #3
    WickidWe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    123
    I had this in the control source
    Code:
    =Left([Name],1)
    They Are All the Exact same letter
    Any Ideas why it would all be one letter?

  4. #4
    WickidWe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    123
    Ok I get it now. Works! thanks!

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What section of the report is that textbox in?

    That textbox calc will not help with the grouping.

    Do the calc in the report RecordSource as JoeM suggested or create a group with that calc in the report Grouping & Sorting setup.

    EDIT: now see your post that says this solved


    BTW, Name is a reserved word. Should avoid using reserved words as 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. Grouped field header on report
    By Glenn_Suggs in forum Reports
    Replies: 2
    Last Post: 05-16-2013, 06:33 AM
  2. Grouped Report with Charts
    By FL_Boy in forum Reports
    Replies: 2
    Last Post: 12-21-2011, 09:27 PM
  3. Report people grouped to years
    By gerhard_s in forum Reports
    Replies: 3
    Last Post: 10-01-2010, 07:59 AM
  4. Replies: 2
    Last Post: 08-25-2010, 01:42 PM
  5. Grouped Report Missing Data
    By travismd in forum Reports
    Replies: 1
    Last Post: 11-30-2009, 11:08 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