Link to home
Start Free TrialLog in
Avatar of DnGreenwood
DnGreenwood

asked on

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!!
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

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)

Avatar of DnGreenwood
DnGreenwood

ASKER

used it in the Group/Sort Section  and in a field within the Group Header
try adding the column to the record source of the report first
Not sure I follow what you mean.  Can you explain further... Thanks!
Here is a copy of the database..  Please see rptCustomersDefault.

Thanks
Section-6-Northwind.accdb
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
perfect!  What did you do?   Was it simply you moved the grouping to the top of the order?

Thanks!
very quick response.  Excellent help!