wilcoHead
Programmer
- Feb 2, 2005
- 85
Hello;
I have a memo filed output for Specialties. Unfortunatly, I am told that the way I have excel outputing the specialties (Specialty1, specialty2, specialty3) does not work for them. Is there anyway to use a CFSET tag to apply each different specialty output to a column with headers rather than having them all together?
Like:
Headers = Specialty1 Specialty2 Specialty3
X X
So, by looking at the top here, my database would read:
Specialty1, Specialty3.
Here is my current code for the Excel Output.
----------------------------------------------------
<CFQUERY NAME="GetDealers" DATASOURCE="HEINE_USERS">
SELECT
Dealer_specialties_tbl.*,
Specialty_tbl.*,
Dealer_tbl.*
FROM
Dealer_specialties_tbl,
Specialty_tbl,
Dealer_tbl
WHERE
Dealer_specialties_tbl.specialtyID = Specialty_tbl.SpecialtyID AND
Dealer_tbl.DealerID = Dealer_specialties_tbl.DealerID AND
Dealer_tbl.Region2 = 1
ORDER BY Country, Dealer_tbl.company_nm
</CFQUERY>
<CFCONTENT type="application/vnd.ms-excel">
<cfoutput>Dealer Name#chr(9)# First Name#chr(9)# Last Name#chr(9)# Address#chr(9)# City#chr(9)# State#chr(9)# Zip#chr(9)# Country#chr(9)# Phone#chr(9)# Fax#chr(9)# Email#chr(9)# Web#chr(9)# Specialties#chr(10)#</CFOUTPUT>
<cfoutput query = "GetDealers" group = "company_nm">#company_nm##chr(9)# #first_nm##chr(9)# #last_nm##chr(9)# #address##chr(9)# #city##chr(9)# #state##chr(9)# #zip##chr(9)# #Country##chr(9)# #phone##chr(9)# #fax##chr(9)# #email##chr(9)# #url##chr(9)# <cfoutput> #specialty#</cfoutput>#chr(10)#</cfoutput>
-----------------------------------------------
Thanks for your input;
WilcoHEAD
I have a memo filed output for Specialties. Unfortunatly, I am told that the way I have excel outputing the specialties (Specialty1, specialty2, specialty3) does not work for them. Is there anyway to use a CFSET tag to apply each different specialty output to a column with headers rather than having them all together?
Like:
Headers = Specialty1 Specialty2 Specialty3
X X
So, by looking at the top here, my database would read:
Specialty1, Specialty3.
Here is my current code for the Excel Output.
----------------------------------------------------
<CFQUERY NAME="GetDealers" DATASOURCE="HEINE_USERS">
SELECT
Dealer_specialties_tbl.*,
Specialty_tbl.*,
Dealer_tbl.*
FROM
Dealer_specialties_tbl,
Specialty_tbl,
Dealer_tbl
WHERE
Dealer_specialties_tbl.specialtyID = Specialty_tbl.SpecialtyID AND
Dealer_tbl.DealerID = Dealer_specialties_tbl.DealerID AND
Dealer_tbl.Region2 = 1
ORDER BY Country, Dealer_tbl.company_nm
</CFQUERY>
<CFCONTENT type="application/vnd.ms-excel">
<cfoutput>Dealer Name#chr(9)# First Name#chr(9)# Last Name#chr(9)# Address#chr(9)# City#chr(9)# State#chr(9)# Zip#chr(9)# Country#chr(9)# Phone#chr(9)# Fax#chr(9)# Email#chr(9)# Web#chr(9)# Specialties#chr(10)#</CFOUTPUT>
<cfoutput query = "GetDealers" group = "company_nm">#company_nm##chr(9)# #first_nm##chr(9)# #last_nm##chr(9)# #address##chr(9)# #city##chr(9)# #state##chr(9)# #zip##chr(9)# #Country##chr(9)# #phone##chr(9)# #fax##chr(9)# #email##chr(9)# #url##chr(9)# <cfoutput> #specialty#</cfoutput>#chr(10)#</cfoutput>
-----------------------------------------------
Thanks for your input;
WilcoHEAD