Hi, CFDude
here's the source code of my program(form page and action page):
My form page and program name:A18Recdate.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<cfinclude template="../template/header1.cfm">
<style>
.bu{ background-color: #ffcccc ; color=#003399}
</style>
<html>
<head>
<title>NEW PART NO MONTHLY</title>
</head>
<body bgcolor="#FFFFFF" text="#009900">
<center>
<h1><font color="#7373B9">*** INQUIRY BY RECEIVED DATE ***</font></h1>
<H2> (MONTHLY REPORT) </H2>
</center>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--- JavaScript section starts here --->
<script Language = "javascript">
<!--- this is the main function, executed by pressing the submit button --->
<!--- This will initialize other functions coded below it, checking the --->
<!--- various differnt sections of the form, validating them --->
function checkform(){
if(StartMonthRange()){
if(EndMonthRange()){
if(ValidCheck()){
if(FilledBoxes()){
return true;
}
}
}
}
return false;
}
<!---This function checks wheather the use entered date is valid and --->
<!--- elminates ossibilites of the endate being earlier than the start date --->
function ValidCheck()
{
var month = document.forms[0].StartMonth.value
var day = document.forms[0].StartDay.value
if (month < 10){
nmonth = int("0" + month)
window.alert("Month is now"+nmonth)
}
else{
nmonth = month
}
if (day < 10){
nday = int("0" + day)
window.alert("Month is now"+day)
}
else{
nday = day
}
if (document.forms[0].StartYear.value > document.forms[0].EndYear.value){
window.alert("Invalid Choice -=Year=- Start Date Earlier Than End Date"

return false;
}
else if (document.forms[0].StartMonth.value > document.forms[0].EndMonth.value && document.forms[0].StartYear.value >= document.forms[0].EndYear.value){
window.alert("Invalid Choice -=Month=- Start Date Earlier Than End Date"

return false;
}
else if(document.forms[0].StartDay.value > document.forms[0].EndDay.value && document.forms[0].StartMonth.value >= document.forms[0].EndMonth.value){
window.alert("Invalid Choice -=Day=- Start Date Earlier Than End Date"

return false;
}else{
return true;
}
}
<!--- This function make sures all the date boxes are filled with a value for submission --->
function FilledBoxes()
{
if(document.forms[0].StartYear.value == "Year" && document.forms[0].EndYear.value == "Year" || document.forms[0].StartYear.value == "Year" && document.forms[0].EndYear.value != "Year" || document.forms[0].StartYear.value != "Year" && document.forms[0].EndYear.value == "Year" || document.forms[0].StartYear.value != "Year" && document.forms[0].EndYear.value != "Year"

{
if(document.forms[0].StartMonth.value == "Month" && document.forms[0].EndMonth.value == "Month" || document.forms[0].StartMonth.value != "Month" && document.forms[0].EndMonth.value == "Month" || document.forms[0].StartMonth.value == "Month" && document.forms[0].EndMonth.value != "Month" || document.forms[0].StartMonth.value != "Month" && document.forms[0].EndMonth.value != "Month"

{
if(document.forms[0].StartDay.value == "Day" && document.forms[0].EndDay.value == "Day" || document.forms[0].StartDay.value != "Day" && document.forms[0].EndDay.value == "Day" || document.forms[0].StartDay.value == "Day" && document.forms[0].EndDay.value != "Day"

{
window.alert("Please fill in all date boxes"

return false;
}
}
}
return true;
}
<!--- currently unused --->
function MonthCheck()
{
if (document.forms[0].StartMonth.value > document.forms[0].EndMonth.value ){
window.alert("Invalid Choice -=Month=- Start Date Earlier Than End Date"

return false;
}
return true;
}
<!--- currently unused --->
function DayCheck()
{
if (document.forms[0].StartDay.value > document.forms[0].EndDay.value ){
window.alert("Invalid Choice -=Day=- Start Date Earlier Than End Date"

return false;
}
return true;
}
function EndMonthRange()
{
if(document.forms[0].EndDay.value == 31 && (document.forms[0].EndMonth.value == 2 || document.forms[0].EndMonth.value == 4 || document.forms[0].EndMonth.value == 6 || document.forms[0].EndMonth.value == 9 || document.forms[0].EndMonth.value == 11)){
window.alert("I'm Sorry, EndDay value exceeds months natrual range"

return false;
}
else if(document.forms[0].EndDay.value == 30 && (document.forms[0].EndMonth.value == 2 )){
window.alert("Febuary doesnt have 30 days"

return false;
}
return true;
}
function StartMonthRange()
{
if(document.forms[0].StartDay.value == 31 && (document.forms[0].StartMonth.value == 2 || document.forms[0].StartMonth.value == 4 || document.forms[0].StartMonth.value == 6 || document.forms[0].StartMonth.value == 9 || document.forms[0].StartMonth.value == 11)){
window.alert("I'm Sorry, StartDay value exceeds months natrual range"

return false;
}
else if(document.forms[0].StartDay.value == 30 && (document.forms[0].StartMonth.value == 2 )){
window.alert("Febuary doesnt have 30 days"

return false;
}
return true;
}
</script>
<!--- JavaScript Ends here --->
</head>
<body bgcolor="#FFFFFF" text="#000000">
<!---Query to retrieve day values from the DateRef_Day table --->
<cfquery name="getDay" datasource="JESEng">
SELECT Day
FROM DateRef_Day
</CFQUERY>
<!---Query to retrieve day values from the DateRef_Month table --->
<cfquery name="getMonth" datasource="JESEng">
SELECT Month
FROM DateRef_Month
</CFQUERY>
<!---Query to retrieve day values from the DateRef_Year table --->
<cfquery name="getYear" datasource="JESEng">
SELECT Year
FROM DateRef_Year
</CFQUERY>
<form action="A18RecdateInquiry.cfm? method="post" onsubmit="return checkform()">
<!--- This is where the form starts. --->
<!---Date Form sections starts here --->
<!--- This is where the 6 comboBoxes containing date values are coded--->
<DIV ALIGN="CENTER">
<table width="72%" border="0">
<tr>
<td width="17%"><b></b></td>
<td width="20%"><b><font face="Times New Roman, Times, serif" size="3" color="#FF6CB6">Start
Date:</font></b> </td>
<td width="18%"> <font face ="Tahoma" size="2">
<select name="StartDay">
<option value ="Day"><font face="Tahoma" size="2">Day</font></option>
<cfoutput query="getDay">
<option value ="#getDay.Day#"><font face="Tahoma" size="2">#getDay.Day#</font></option>
</cfoutput>
</select>
</font> </td>
<td width="21%"> <font face ="Tahoma" size="2">
<select name="StartMonth">
<option value ="Month"><font face="Tahoma" size="2">Month</font></option>
<cfoutput query="getMonth">
<option value ="#getMonth.Month#"><font face="Tahoma" size="2">#getMonth.Month#</font></option>
</cfoutput>
</select>
</font> </td>
<td width="24%"><font face ="Tahoma" size="2">
<select name="StartYear">
<option value ="Year">Year</option>
<cfoutput query="getYear">
<option value ="#getYear.Year#">#getYear.Year#</option>
</cfoutput>
</select>
</font></td>
</tr>
<tr>
<td width="17%"><b></b></td>
<td width="20%" > <font face ="Tahoma" size="2"><b><font face="Times New Roman, Times, serif" size="3" color="#FF6CB6">End
Date:</font></b> </font></td>
<td width="18%" > <font face ="Tahoma" size="2">
<select name="EndDay">
<option value ="Day"><font face="Tahoma" size="2">Day</font></option>
<cfoutput query="getDay">
<option value ="#getDay.Day#"><font face="Tahoma" size="2">#getDay.Day#</font></option>
</cfoutput>
</select>
</font></td>
<td width="21%" ><font face ="Tahoma" size="2">
<select name="EndMonth">
<option value ="Month"><font face="Tahoma" size="2">Month</font></option>
<cfoutput query="getMonth">
<option value ="#getMonth.Month#"><font face="Tahoma" size="2">#getMonth.Month#</font></option>
</cfoutput>
</select>
</font> </td>
<td width="24%" > <font face ="Tahoma" size="2">
<select name="EndYear">
<option value ="Year"> Year </option>
<cfoutput query="getYear">
<option value ="#getYear.Year#">#getYear.Year# </option>
<!---Date Form sections ends here --->
</cfoutput>
</select>
</font> </td>
<tr>
<td colspan="5">
<div align="center">
<!--- The submit button to proceed to the action page --->
</div>
</td>
</tr>
</table>
<p> </p>
<input type="submit" value="Submit" class="bu">
<p> </p>
</div>
</form>
</body>
</html>
<cfinclude template="../template/footer.cfm">
And here's my action page and program name:A18RecdateInquiry.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<cfinclude template="../template/header1.cfm">
<style>
.bu{ background-color: #ffcccc ; color=#003399}
</style>
<!-- intialize constants -->
<CFSET MaxRows = 20>
<!-- intialize all fields if they do not exist -->
<CFPARAM NAME="start" DEFAULT="1">
<CFPARAM NAME="A18model" DEFAULT="">
<CFPARAM NAME="DwgNo" DEFAULT="">
<CFPARAM NAME="DwgNm" DEFAULT="">
<CFPARAM NAME="A18suppcode" DEFAULT="">
<CFPARAM NAME="A18sub" DEFAULT="">
<CFPARAM NAME="A18recdate" DEFAULT="">
<CFPARAM NAME="A18issdept" DEFAULT="">
<CFPARAM NAME="A18issdate" DEFAULT="">
<CFPARAM NAME="A18rmk" DEFAULT="">
<CFPARAM NAME="A18jud" DEFAULT="">
<CFPARAM NAME="A18appdate" DEFAULT="">
<CFPARAM NAME="A18duedate" DEFAULT="">
<!--- <cfset startDate = #CreateDate(2001,9,1)#> --->
<!--- <cfset endDate = #CreateDate(2001,9,30)#> --->
<cfset startDate = #CreateDate('#FORM.StartYear#','#FORM.StartMonth#','#FORM.StartDay#')#>
<cfset endDate = #CreateDate('#FORM.EndYear#','#FORM.EndMonth#','#FORM.EndDay#')#>
<cfoutput>
<font face= "Times New Roman, Times, serif" size="2">
<b> You have selected the date range of <i>#DateFormat(startDate,"dd/mm/yyyy"

#</i>
to <i>#DateFormat(endDate,"dd/mm/yyyy"

#</i> </b></font>
</cfoutput>
<!-- perform actual search -->
<cfquery name="ViewA18Recdate" datasource="JESEng" dbtype="ODBC">
SELECT Drawing.DwgNo,Drawing.DwgNm,A18NewPart.A18model,A18NewPart.A18suppcode,
A18NewPart.A18sub,A18NewPart.A18recdate,A18NewPart.A18issdept,A18NewPart.A18issdate,
A18NewPart.A18rmk,A18NewPart.A18jud,A18NewPart.A18appdate,A18NewPart.A18duedate
FROM qryA18
WHERE A18NewPart.A18recdate >= #startDate#
AND A18NewPart.A18recdate <= #endDate#
ORDER BY Drawing.DwgNo
</cfquery>
<!-- send user to an error page if query outputs no data -->
<cfif #ViewA18Recdate.A18recdate# eq "">
ERROR!!! Received Date Was Not Specified!!!
<meta http-equiv=refresh content="2;url=..\A18\A18Recdate.cfm">
</cfif>
<cfset ToRow = start + (MaxRows -1)>
<cfif ToRow GT ViewA18Recdate.RecordCount>
<cfset ToRow = ViewA18Recdate.RecordCount>
</cfif>
<html>
<head>
<title>IQC NEW PART MASTER</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#3333cc">
<h1><div align="center"><font color="##7355B9">LIST OF NEW PARTS (RECEIVED DATE)</h1></div></font>
<cfoutput>
<h2><font color="##6473B9">Total Records To View Are: <font color="##DF00DF">#ViewA18Recdate.RecordCount#</font></font></h2>
</cfoutput>
<!-- create table for display -->
<TABLE BORDER="2" cellpadding=0 cellspacing=1 bordercolor="#993399">
<!-- table hearders -->
<TR>
<TH><font color="#cc6666">Model</font></TH>
<TH><font color="#cc6666">Part No</font></TH>
<TH><font color="#cc6666">Part Name</font></TH>
<TH><font color="#cc6666">SuppCode</font></TH>
<TH><font color="#cc6666">Sub</font></TH>
<TH><font color="#cc6666">Rec.Date</font></TH>
<TH><font color="#cc6666">Iss.Dept</font></TH>
<TH><font color="#cc6666">Iss.Date</font></TH>
<TH><font color="#cc6666">Remark</font></TH>
<TH><font color="#cc6666">Jud</font></TH>
<TH><font color="#cc6666">App.Date</font></TH>
<TH><font color="#cc6666">Due Date</font></TH>
</TR>
<!-- write out the retrieved data -->
<CFOUTPUT QUERY="ViewA18Recdate" STARTROW="#start#" MAXROWS="#Maxrows#">
<TR>
<TD>#Trim(A18model)#</TD>
<TD>#Trim(DwgNo)#</TD>
<TD>#Trim(DwgNm)#</TD>
<TD ALIGN="CENTER">#Trim(A18suppcode)#</TD>
<TD ALIGN="CENTER">#Trim(A18sub)#</TD>
<TD>#Trim(A18recdate)#</TD>
<TD ALIGN="CENTER">#Trim(A18issdept)#</TD>
<TD>#Trim(A18issdate)#</TD>
<TD ALIGN="CENTER">#Trim(A18rmk)#</TD>
<TD ALIGN="CENTER">#Trim(A18jud)#</TD>
<TD>#Trim(A18appdate)#</TD>
<TD>#Trim(A18duedate)#</TD>
</TR>
</CFOUTPUT>
</TABLE>
<TR>
<!-- what are the previous and next row to start positions -->
<CFSET PrevStart = start - MaxRows>
<CFSET NextStart = start + MaxRows>
<!-- previous button code -->
<TD COLSPAN ="3" ALIGN="Center">
<CFIF PrevStart GTE 1>
<CFOUTPUT>
<FORM ACTION="A18RecdateInquiry.cfm" METHOD="POST">
<INPUT TYPE="hidden" NAME="start" VALUE="#PrevStart#">
<INPUT TYPE="hidden" NAME="A18model" VALUE="#A18model#">
<INPUT TYPE="hidden" NAME="DwgNo" VALUE="#DwgNo#">
<INPUT TYPE="hidden" NAME="DwgNm" VALUE="#DwgNm#">
<INPUT TYPE="hidden" NAME="A18suppcode" VALUE="#A18suppcode#">
<INPUT TYPE="hidden" NAME="A18sub" VALUE="#A18sub#">
<INPUT TYPE="hidden" NAME="A18recdate" VALUE="#A18recdate#">
<INPUT TYPE="hidden" NAME="A18issdept" VALUE="#A18issdept#">
<INPUT TYPE="hidden" NAME="A18issdate" VALUE="#A18issdate#">
<INPUT TYPE="hidden" NAME="A18rmk" VALUE="#A18rmk#">
<INPUT TYPE="hidden" NAME="A18jud" VALUE="#A18jud#">
<INPUT TYPE="hidden" NAME="A18appdate" VALUE="#A18appdate#">
<INPUT TYPE="hidden" NAME="A18duedate" VALUE="#A18duedate#">
<BR>
<A HREF="../A18/A18RecdateInquiry.cfm?start=#PrevStart#"><font size="+1">Previous #MaxRows#</font>
<B><strong> | </strong></B>
<A HREF="../A18/A18Recdate.cfm"><font size="+1">BACK</font></A>
</FORM>
</CFOUTPUT>
</CFIF>
</TD>
<!-- next button code -->
<TD COLSPAN ="3" ALIGN="Center">
<CFIF NextStart LTE ViewA18Recdate.RecordCount>
<CFOUTPUT>
<FORM ACTION="A18RecdateInquiry.cfm" METHOD="POST">
<INPUT TYPE="hidden" NAME="start" VALUE="#NextStart#">
<INPUT TYPE="hidden" NAME="A18model" VALUE="#A18model#">
<INPUT TYPE="hidden" NAME="DwgNo" VALUE="#DwgNo#">
<INPUT TYPE="hidden" NAME="DwgNm" VALUE="#DwgNm#">
<INPUT TYPE="hidden" NAME="A18suppcode" VALUE="#A18suppcode#">
<INPUT TYPE="hidden" NAME="A18sub" VALUE="#A18sub#">
<INPUT TYPE="hidden" NAME="A18recdate" VALUE="#A18recdate#">
<INPUT TYPE="hidden" NAME="A18issdept" VALUE="#A18issdept#">
<INPUT TYPE="hidden" NAME="A18issdate" VALUE="#A18issdate#">
<INPUT TYPE="hidden" NAME="A18rmk" VALUE="#A18rmk#">
<INPUT TYPE="hidden" NAME="A18jud" VALUE="#A18jud#">
<INPUT TYPE="hidden" NAME="A18appdate" VALUE="#A18appdate#">
<INPUT TYPE="hidden" NAME="A18duedate" VALUE="#A18duedate#">
<BR>
<A HREF="../A18/A18RecdateInquiry.cfm?start=#NextStart#"><font size="+1">Next #MaxRows#</font>
<B><strong> | </strong></B>
<A HREF="../A18/A18Recdate.cfm"><font size="+1">BACK</font></A>
</FORM>
</CFOUTPUT>
</CFIF>
</TD>
</TR>
</body>
</html>
<cfinclude template="../template/footer.cfm">
THANK YOU....