Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Trouble with Left Function Use in Grouping

I am trying to group by first letter of last name in a report using the LEFT function and have a header at the top of each grouping of a letter.  All the last names starting with A etc....

I have tried using this syntax but with no luck..  what am i doing wrong?

= LEFT([Last Name],1)

Thanks for your help!!
0
DnGreenwood
Asked:
DnGreenwood
  • 5
  • 4
1 Solution
 
Rey Obrero (Capricorn1)Commented:
where did you use this ?
  = LEFT([Last Name],1)


try adding a column to your query

select LEFT([Last Name],1) from table
group by  LEFT([Last Name],1)

0
 
DnGreenwoodAuthor Commented:
used it in the Group/Sort Section  and in a field within the Group Header
0
 
Rey Obrero (Capricorn1)Commented:
try adding the column to the record source of the report first
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
DnGreenwoodAuthor Commented:
Not sure I follow what you mean.  Can you explain further... Thanks!
0
 
DnGreenwoodAuthor Commented:
Here is a copy of the database..  Please see rptCustomersDefault.

Thanks
Section-6-Northwind.accdb
0
 
Rey Obrero (Capricorn1)Commented:
0
 
DnGreenwoodAuthor Commented:
perfect!  What did you do?   Was it simply you moved the grouping to the top of the order?

Thanks!
0
 
Rey Obrero (Capricorn1)Commented:
yes
0
 
DnGreenwoodAuthor Commented:
very quick response.  Excellent help!
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now