我正在尝试使用和创建一个运动成绩的excel文件,但任何低于13的分数都会被解释为日期。 [例如。 15-25很好但12-25插入excel文件作为日期“25-Dec”]
有人可以帮助我摆脱这种困境。
谢谢
Cold Fusion代码的摘要如下所示:
<!--- Code to output to EXCEL
<cfheader name="Content-Disposition" value="inline; filename=CHRVAResults.xls">
<cfcontent type="application/vnd.msexcel">
End Code to output to EXCEL --->
<table border="1" cellspacing="0">
<tr>
<td width="200" align="" class="poolHR">Team 1</td>
<td width="200" align="" class="poolHR">Team 1 Code</td>
<td width="200" align="" class="poolHR">Opponent</td>
<td width="200" align="" class="poolHR">Opponent's Code</td>
<td width="300" align="" class="poolHR">Tournament Name</td>
<td width="100" align="" class="poolHR">Date</td>
<td width="50" align="" class="poolHR">Outcome</td>
</tr>
<cfoutput query="listDetail">
<cfquery name="getwinningTeamName" datasource="#juniordb_sql#">
select teams.teamName, teams.teamCode
from teams
where teams.teamcode = '#listDetail.Winning_teamID#'
UNION
select outofregion.teamName, outofregion.teamCode
from outofregion
where outofregion.teamcode = '#listDetail.Winning_teamID#'
</cfquery>
<cfquery name="getlosingTeamName" datasource="#juniordb_sql#">
select teams.teamName, teams.teamCode
from teams
where teams.teamcode = '#listDetail.Losing_teamID#'
UNION
select outofregion.teamName, outofregion.teamCode
from outofregion
where outofregion.teamcode = '#listDetail.Losing_teamID#'
</cfquery>
<cfquery name="getTourn" datasource="#juniordb_sql#">
SELECT uniqueid, dte, tournname, division
FROM sanction
<cfif tournID is not "">
WHERE sanction.uniqueid = '#tournID#';
</cfif>
</cfquery>
<td>
....etc