Data Import // MS Query // Header Missing

  • Hi Guys,

    i wonder if anybody can assist me this is doing my head-in. I am using Query and linking it with Excel 03 to pull the result. The query works fine in Sql server but when it runs in Excel Query it removes the header for all the allias used within the query. Any suggestion why its happining. I can't manually keep writing since its a regular report.

    select rtrim(service) as service,sum(NumberOfPassengers)Passenger,

    DepartureName,ArrivalName,

    Company, DepartureMonthName, DepartureYear

    from table1

    where DepartureDate between '01-jan-2012'and getdate()

    and (DepartureName like 'random%'

    or ArrivalName like 'ramdp,%')

    and Company='ran'

    group by ServiceNumberOld,DepartureName,ArrivalName,Company,DepartureMonthName,DepartureYear,ServiceNameOld

  • I am using office 2010 and it works fine for me.

  • I think its the bug coz I tried the same after reading you're comment and it was working. The only problem is people within business are on 03 so. I have to look for solution. Can't provide 10 version to these people. they ill have a heart attack. I imported the Data in Pivot and then changed the format will check to see if this makes a difference.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply