I included the first 2 pages of code and the section of the thhird page where I get the error. The first page allows the user to choose how many rows of info. to enter (this works fine) Going from the second to the third page I get a type mismatch error:
<!--PAGE 1-->
<HTML>
<HEAD>
<TITLE>Add a Game</TITLE></HEAD>
<FORM ACTION="gameadd1a.cfm" METHOD="POST">
<table width="755" border="0" align="left">
<TR>
<td colspan="5"><FONT size="3" face="Arial, Helvetica, sans-serif"><IMG src="rict_header.gif" width="252" height="45" alt="District Heading"></FONT></td>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center" bgcolor="#003300">
</TD>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center" bgcolor="#eaaf00"><b><font size="3" face="Arial, Helvetica, sans-serif">Game
Additions</font></b>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center">
<H3><font size="3" face="Arial, Helvetica, sans-serif"></font></H3>
</TD>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="left"><b><font face="Arial, Helvetica, sans-serif">How
many games do you want to add?</font></b> </TD>
</TR>
<tr>
<td valign="top"><font face="Arial, Helvetica, sans-serif" size="2">Please
enter the number of games you would like to add to the schedule:
<INPUT TYPE="text" NAME="num" SIZE="4" MAXLENGTH="2" value="1">
</font> </td>
</tr>
<tr>
<td> <input type="submit" value="Add Game(s)" name="submit">
<input type="reset" value="Clear" name="reset">
</td>
</tr>
</table>
</FORM>
</BODY>
</HTML>
<!--END of PAGE 1-->
<!--PAGE 2-->
<HTML>
<HEAD>
<TITLE>Add a Game</TITLE>
</HEAD>
<BODY marginheight="8" marginwidth="8" topmargin="8" leftmargin="8">
<FORM ACTION="gameadd2a.cfm" METHOD="POST">
<table width="755" border="0" align="left">
<TR>
<td colspan="5"><FONT size="3" face="Arial, Helvetica, sans-serif"><IMG src=" width="252" height="45" alt="District Heading"></FONT></td>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center" bgcolor="#003300">
</TD>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center" bgcolor="#eaaf00"><b><font size="3" face="Arial, Helvetica, sans-serif">Game
Additions</font></b>
</TR>
<tr>
<td>
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr valign="top">
<th height="2"><font face="Arial,Helvetica,sans-serif">Team</font></th>
<th height="2"><font face="Arial,Arial,Helvetica,sans-serif">Date<br>
<font size="1">Use the following Date format: <font color="#FF0000">09/12/2001</font></font></font></th>
<th height="2"><font face="Arial,Arial,Helvetica,sans-serif">Time</font></th>
<th height="2"><font face="Arial,Helvetica,sans-serif">Site</font></th>
<th height="2"><font face="Arial,Helvetica,sans-serif">Opponent</font></th>
</tr>
<cfoutput>
<tr>
<td>
<INPUT TYPE="hidden" NAME="num" value="#num#">
</td>
</tr>
</cfoutput>
<CFLOOP FROM ="1" TO="#NUM#" INDEX="i">
<CFOUTPUT>
<tr valign="bottom">
<td align="center">
<Select Name="SportID#i#">
<option Value="">
<option value="1">Varsity Football
<option Value="2">Varsity Cross Country
<option Value="3">Varsity Boys Soccer
<option Value="4">Varsity Girls Soccer
<option Value="5">Varsity Volleyball
<option Value="6">Varsity Girls Tennis
<option Value="7">Varsity Swimming
<option Value="8">JV Football
<option Value="9">JV Boys Soccer
<option Value="10">JV Girls Soccer
<option Value="11">JV Girls Volleyball
</select>
</td>
<td align="center">
<INPUT TYPE="text" NAME="Sched_Date#i#" SIZE="21" MAXLENGTH="21" value="09/12/2001">
</td>
<td align="center"> <font face="Arial,Helvetica,sans-serif">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th><font size="1">Hour</font></th>
<th><font size="1">Minutes</font></th>
<th><font size="1">AM/PM</font></th>
</tr>
<tr>
<th>
<Select Name="Hour#i#">
<option Value="TBA">TBA
<option Value="1:">1
<option Value="2:">2
<option Value="3:">3
<option Value="4:">4
<option Value="5:">5
<option Value="6:">6
<option Value="7:">7
<option Value="8:">8
<option Value="9:">9
<option Value="10:">10
<option Value="11:">11
<option Value="1:">12
</select>
</th>
<th>
<Select Name="Minutes#i#">
<option Value=" ">
<option Value="00">00
<option Value="15">15
<option Value="30">30
<option Value="45">45
</select>
</th>
<th>
<Select Name="Meridian#i#">
<option Value=" ">
<option Value="AM">AM
<option Value="PM">PM
</select>
</th>
</tr>
</table>
</font> </td>
<td align="center">
<Select Name="Site#i#">
<option Value="Home">Home
<option Value="Away">Away
</select>
</td>
<td align="center">
<Select Name="OpponentID#i#">
<option Value="16">Brown Invitational
<option Value="23">Carey
<option Value="45">Chaminade
<option Value="2">Clarke
<option Value="40">Cold Spring Harbor
<option Value="18">Conf. Championship(X-C)
<option Value="12">Division(X-C)
<option Value="41">Freeport
<option Value="20">Friends Academy
<option Value="19">Frosh/Soph Champ.
<option Value="28">Garden City
<option Value="33">Glen Cove
<option Value="35">Great Neck North
<option Value="39">Great Neck South
<option Value="24">Herricks
<option Value="31">Hewlett
<option Value="44">Hicksville
<option Value="6">Jericho
<option Value="3">Jim Smith Inv.(X-C)
<option Value="27">Kennedy Belmore
<option Value="26">Lawrence
<option Value="9">Levittown Division(FOOTBALL)
<option Value="37">Long Beach
<option Value="21">Mac Arthur
<option Value="36">Manhasset
<option Value="15">Manhattan College Inv.(X-C)
<option Value="4">Mineola
<option Value="17">Nassau Coaches Inv.(X-C)
<option Value="34">North Shore
<option Value="13">NYC PSAL(X-C)
<option Value="22">Plainedge
<option Value="42">Plainview JFK
<option Value="32">Port Washington
<option Value="1">Roslyn
<option Value="30">Seaford
<option Value="10">Sewanhaka
<option Value="29">South Side
<option Value="14">St. Anthony's Inv.(X-C)
<option Value="11">Suff. Coaches Inv.(X-C)
<option Value="38">Uniondale
<option Value="25">Valley Stream South
<option Value="5">Wantagh
<option Value="7">West Hemstead
<option Value="8">West Hemstead (HC)
</select>
</td>
</tr>
</CFOUTPUT>
</CFLOOP>
<tr align="left">
<td colspan="5">
<input type="submit" value="Add Game(s)" name="submit">
<input type="reset" value="Clear" name="reset">
</td>
</tr>
</table>
</td>
</tr>
</table>
</FORM>
</BODY>
</HTML>
<!--END of PAGE 2-->
<!--PAGE 3-->
<CFLOOP FROM ="1" TO="#NUM#" INDEX="i">
<CFQUERY DATASOURCE="sports">
INSERT INTO Schedule (SportID, Site, Sched_Date, Hour, Minutes, Meridian, OpponentID)
VALUES(SportID#i#, Site#i#', 'Sched_Date#i#', 'Hour#i#', 'Minutes#i#', 'Meridian#i#', 'OpponentID#i#')
</CFQUERY>
</cfloop>
<CFQUERY DATASOURCE="sports" NAME="schedule1">
SELECT sportid,
opponentid
FROM schedule
</CFQUERY>
<cfoutput query ="schedule1">
<CFQUERY DATASOURCE="sports" NAME="schedule">
SELECT id,
teamname,
oppid,
opponentname
FROM team, opponent
WHERE #sportid# = id and #opponentid# = oppid
<!--END of PAGE 3-->
<!--PAGE 1-->
<HTML>
<HEAD>
<TITLE>Add a Game</TITLE></HEAD>
<FORM ACTION="gameadd1a.cfm" METHOD="POST">
<table width="755" border="0" align="left">
<TR>
<td colspan="5"><FONT size="3" face="Arial, Helvetica, sans-serif"><IMG src="rict_header.gif" width="252" height="45" alt="District Heading"></FONT></td>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center" bgcolor="#003300">
</TD>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center" bgcolor="#eaaf00"><b><font size="3" face="Arial, Helvetica, sans-serif">Game
Additions</font></b>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center">
<H3><font size="3" face="Arial, Helvetica, sans-serif"></font></H3>
</TD>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="left"><b><font face="Arial, Helvetica, sans-serif">How
many games do you want to add?</font></b> </TD>
</TR>
<tr>
<td valign="top"><font face="Arial, Helvetica, sans-serif" size="2">Please
enter the number of games you would like to add to the schedule:
<INPUT TYPE="text" NAME="num" SIZE="4" MAXLENGTH="2" value="1">
</font> </td>
</tr>
<tr>
<td> <input type="submit" value="Add Game(s)" name="submit">
<input type="reset" value="Clear" name="reset">
</td>
</tr>
</table>
</FORM>
</BODY>
</HTML>
<!--END of PAGE 1-->
<!--PAGE 2-->
<HTML>
<HEAD>
<TITLE>Add a Game</TITLE>
</HEAD>
<BODY marginheight="8" marginwidth="8" topmargin="8" leftmargin="8">
<FORM ACTION="gameadd2a.cfm" METHOD="POST">
<table width="755" border="0" align="left">
<TR>
<td colspan="5"><FONT size="3" face="Arial, Helvetica, sans-serif"><IMG src=" width="252" height="45" alt="District Heading"></FONT></td>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center" bgcolor="#003300">
</TD>
</TR>
<TR>
<TD colspan="5" height="20" valign="top" align="center" bgcolor="#eaaf00"><b><font size="3" face="Arial, Helvetica, sans-serif">Game
Additions</font></b>
</TR>
<tr>
<td>
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr valign="top">
<th height="2"><font face="Arial,Helvetica,sans-serif">Team</font></th>
<th height="2"><font face="Arial,Arial,Helvetica,sans-serif">Date<br>
<font size="1">Use the following Date format: <font color="#FF0000">09/12/2001</font></font></font></th>
<th height="2"><font face="Arial,Arial,Helvetica,sans-serif">Time</font></th>
<th height="2"><font face="Arial,Helvetica,sans-serif">Site</font></th>
<th height="2"><font face="Arial,Helvetica,sans-serif">Opponent</font></th>
</tr>
<cfoutput>
<tr>
<td>
<INPUT TYPE="hidden" NAME="num" value="#num#">
</td>
</tr>
</cfoutput>
<CFLOOP FROM ="1" TO="#NUM#" INDEX="i">
<CFOUTPUT>
<tr valign="bottom">
<td align="center">
<Select Name="SportID#i#">
<option Value="">
<option value="1">Varsity Football
<option Value="2">Varsity Cross Country
<option Value="3">Varsity Boys Soccer
<option Value="4">Varsity Girls Soccer
<option Value="5">Varsity Volleyball
<option Value="6">Varsity Girls Tennis
<option Value="7">Varsity Swimming
<option Value="8">JV Football
<option Value="9">JV Boys Soccer
<option Value="10">JV Girls Soccer
<option Value="11">JV Girls Volleyball
</select>
</td>
<td align="center">
<INPUT TYPE="text" NAME="Sched_Date#i#" SIZE="21" MAXLENGTH="21" value="09/12/2001">
</td>
<td align="center"> <font face="Arial,Helvetica,sans-serif">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th><font size="1">Hour</font></th>
<th><font size="1">Minutes</font></th>
<th><font size="1">AM/PM</font></th>
</tr>
<tr>
<th>
<Select Name="Hour#i#">
<option Value="TBA">TBA
<option Value="1:">1
<option Value="2:">2
<option Value="3:">3
<option Value="4:">4
<option Value="5:">5
<option Value="6:">6
<option Value="7:">7
<option Value="8:">8
<option Value="9:">9
<option Value="10:">10
<option Value="11:">11
<option Value="1:">12
</select>
</th>
<th>
<Select Name="Minutes#i#">
<option Value=" ">
<option Value="00">00
<option Value="15">15
<option Value="30">30
<option Value="45">45
</select>
</th>
<th>
<Select Name="Meridian#i#">
<option Value=" ">
<option Value="AM">AM
<option Value="PM">PM
</select>
</th>
</tr>
</table>
</font> </td>
<td align="center">
<Select Name="Site#i#">
<option Value="Home">Home
<option Value="Away">Away
</select>
</td>
<td align="center">
<Select Name="OpponentID#i#">
<option Value="16">Brown Invitational
<option Value="23">Carey
<option Value="45">Chaminade
<option Value="2">Clarke
<option Value="40">Cold Spring Harbor
<option Value="18">Conf. Championship(X-C)
<option Value="12">Division(X-C)
<option Value="41">Freeport
<option Value="20">Friends Academy
<option Value="19">Frosh/Soph Champ.
<option Value="28">Garden City
<option Value="33">Glen Cove
<option Value="35">Great Neck North
<option Value="39">Great Neck South
<option Value="24">Herricks
<option Value="31">Hewlett
<option Value="44">Hicksville
<option Value="6">Jericho
<option Value="3">Jim Smith Inv.(X-C)
<option Value="27">Kennedy Belmore
<option Value="26">Lawrence
<option Value="9">Levittown Division(FOOTBALL)
<option Value="37">Long Beach
<option Value="21">Mac Arthur
<option Value="36">Manhasset
<option Value="15">Manhattan College Inv.(X-C)
<option Value="4">Mineola
<option Value="17">Nassau Coaches Inv.(X-C)
<option Value="34">North Shore
<option Value="13">NYC PSAL(X-C)
<option Value="22">Plainedge
<option Value="42">Plainview JFK
<option Value="32">Port Washington
<option Value="1">Roslyn
<option Value="30">Seaford
<option Value="10">Sewanhaka
<option Value="29">South Side
<option Value="14">St. Anthony's Inv.(X-C)
<option Value="11">Suff. Coaches Inv.(X-C)
<option Value="38">Uniondale
<option Value="25">Valley Stream South
<option Value="5">Wantagh
<option Value="7">West Hemstead
<option Value="8">West Hemstead (HC)
</select>
</td>
</tr>
</CFOUTPUT>
</CFLOOP>
<tr align="left">
<td colspan="5">
<input type="submit" value="Add Game(s)" name="submit">
<input type="reset" value="Clear" name="reset">
</td>
</tr>
</table>
</td>
</tr>
</table>
</FORM>
</BODY>
</HTML>
<!--END of PAGE 2-->
<!--PAGE 3-->
<CFLOOP FROM ="1" TO="#NUM#" INDEX="i">
<CFQUERY DATASOURCE="sports">
INSERT INTO Schedule (SportID, Site, Sched_Date, Hour, Minutes, Meridian, OpponentID)
VALUES(SportID#i#, Site#i#', 'Sched_Date#i#', 'Hour#i#', 'Minutes#i#', 'Meridian#i#', 'OpponentID#i#')
</CFQUERY>
</cfloop>
<CFQUERY DATASOURCE="sports" NAME="schedule1">
SELECT sportid,
opponentid
FROM schedule
</CFQUERY>
<cfoutput query ="schedule1">
<CFQUERY DATASOURCE="sports" NAME="schedule">
SELECT id,
teamname,
oppid,
opponentname
FROM team, opponent
WHERE #sportid# = id and #opponentid# = oppid
<!--END of PAGE 3-->