View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.links
rachael
 
Posts: n/a
Default can't change field name in query?

I'm using Microsoft Query to bring in some data. I have the query in SQL so i
can do some groupings and count values in one of the fields. My problem is
I'm having difficulty renaming a field, so it comes back with no name at all.
The SQL line is:

SELECT [lots of fields], Count(StudentHistory.Status) AS CountStatus

The count comes back properly, but the changed field name (i.e.,
CountStatus) doesn't appear. The field name is blank. How does this need to
be written so the field name comes back as CountStatus?

Thanks
rachael