Thank you for the quick response!
I think I should have been a little more precise in how I am passing the date to this query. I am using a query populated dropdown list that gets distinct dates from UPS_Invoices
<form method="POST" action="ups_invoice.asp">
<p><nobr>
<!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT DISTINCT invoicedate FROM ups_invoices"
fp_sDefault="08192006"
fp_sNoRecords="No records returned."
fp_sDataConn="newmas"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=True
fp_sMenuChoice=""
fp_sMenuValue="InvoiceDate"
fp_iDisplayCols=1
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<select NAME="Invoice_Date" SIZE="1">
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<option><%=FP_FieldHTML(fp_rs,"InvoiceDate")%></option>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</nobr><input type="submit" value="Submit" name="invoicedate"></p>
</form>
I then use a chosen date by a query like:
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT distinct ups_invoices.[InvoiceDate], ups_invoices.[AccountNumber], ups_invoices.[InvoiceNumber], ups_invoices.[InvoiceAmount], sum(ups_invoices.[InvoiceAmount]) AS Total_Invoice FROM ups_invoices WHERE (""InvoiceDate"" = '::Invoice_Date::') group by ups_invoices.[accountnumber], ups_invoices.[invoiceamount], ups_invoices.[InvoiceNumber], ups_invoices.[InvoiceDate];"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=4 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="newmas"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Version=200&Recipient Number=202&AccountNumber=202&Account Country=202&InvoiceDate=135&InvoiceNumber=202&Invoice Type Code=202&Invoice Type Detail Code=202&Account Tax ID=202&Invoice Currency Code=202&InvoiceAmount=5&Transaction Date=135&Pickup Record Number=202&Lead Shipment Number=202&World Ease Number=202&Shipment Reference Number 1=202&Shipment Reference Number 2=202&Bill Option Code=202&Package Quantity=5&Oversize Quantity=5&TrackingID=202&Ref1=202&Ref2=202&Ref3=202&Ref4=202&Ref5=202&Entered Weight=5&Entered Weight Unit of Measure=202&Billed Weight=5&Billed Weight Unit of Measure=202&Container Type=202&Billed Weight Type=202&Package Dimensions=202&Zone=5&Charge Category Code=202&Charge Category Detail Code=202&Charge Source=202&Type Code 1=5&Type Detail Code 1=202&Type Detail Value 1=202&Type Code 2=202&Type Detail Code 2=202&Type Detail Value 2=202&Charge Classification Code=202&Charge Description Code=202&Charge Description=202&Charged Unit Quantity=5&Basis Currency Code=202&Basis Value=5&Tax Indicator=5&Transaction Currency Code=202&Incentive Amount=5&Net Amount=5&Miscellaneous Currency Code=202&Miscellaneous Incentive Amount=5&Miscellaneous Net Amount=5&Alternate Invoicing Currency Code=202&Alternate Invoice Amount=5&Invoice Exchange Rate=5&Tax Variance Amount=5&Currency Variance Amount=5&Invoice Level Charge=5&Invoice Due Date=135&Alternate Invoice Number=202&Store Number=202&Customer Reference Number=202&Sender Name=202&Sender Company Name=202&Sender Address Line 1=202&Sender Address Line 2=202&Sender City=202&Sender State=202&Sender Postal=5&Sender Country=202&Receiver Name=202&Receiver Company Name=202&Receiver Address Line 1=202&Receiver Address Line 2=202&Receiver City=202&Receiver State=202&Receiver Postal=5&Receiver Country=202&Third Party Name=202&Third Party Company Name=202&Third Party Address Line 1=202&Third Party Address Line 2=202&Third Party City=202&Third Party State=202&Third Party Postal=202&Third Party Country=202&Sold To Name=202&Sold To Company Name=202&Sold To Address Line 1=202&Sold To Address Line 2=202&Sold To City=202&Sold To State=202&Sold To Postal=202&Sold To Country=202&Miscellaneous Address Qual 1=202&Miscellaneous Address 1 Name=202&Miscellaneous Address 1 Company Name=202&Miscellaneous Address 1 Address Line 1=202&Miscellaneous Address 1 Address Line 2=202&Miscellaneous Address 1 City=202&Miscellaneous Address 1 State=202&Miscellaneous Address 1 Postal=202&Miscellaneous Address 1 Country=202&Miscellaneous Address Qual 2=202&Miscellaneous Address 2 Name=202&Miscellaneous Address 2 Company Name=202&Miscellaneous Address 2 Address Line 1=202&Miscellaneous Address 2 Address Line 2=202&Miscellaneous Address 2 City=202&Miscellaneous Address 2 State=202&Miscellaneous Address 2 Postal=202&Miscellaneous Address 2 Country=202&Shipment Date=202&Shipment Export Date=202&Shipment Import Date=202&Entry Date=202&Direct Shipment Date=202&Shipment Delivery Date=202&Shipment Release Date=202&Cycle Date=202&EFT Date=202&Validation Date=202&Entry Port=202&Entry Number=202&Export Place=202&Shipment Value Amount=5&Shipment Description=202&Entered Currency Code=202&Customs Number=202&Exchange Rate=5&Master Air Waybill Number=202&EPU=202&Entry Type=202&CPC Code=202&Line Item Number=5&Goods Description=202&Entered Value=5&Duty Amount=5&Weight=202&Unit of Measure=202&Item Quantity=5&Item Quantity Unit of Measure=202&Import Tax ID=202&Declaration Number=202&Carrier Name=202&CCCD Number=202&Cycle Number=202&Foreign Trade Reference Number=202&Job Number=202&Transport Mode=202&Tax Type=202&Tariff Code=202&Tariff Rate=5&Tariff Treatment Number=202&Contact Name=202&Class Number=202&Document Type=202&Office Number=202&Document Number=202&Duty Value=5&Total Value for Duty=5&Excise Tax Amount=5&Excise Tax Rate=5&GST Amount=5&GST Rate=5&Order In Council=202&Origin Country=202&SIMA Access=5&Tax Value=5&Total Customs Amount=5&Miscellanous Line 1=202&Miscellanous Line 2=202&Miscellanous Line 3=202&Miscellanous Line 4=202&Miscellanous Line 5=202&Miscellanous Line 6=5&Miscellanous Line 7=202&Miscellanous Line 8=202&Miscellanous Line 9=202&Miscellanous Line 10=202&UPS Internal Use=202&"
fp_iDisplayCols=4
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<tr>
<td>
<%=FP_FieldVal(fp_rs,"AccountNumber")%></td>
<td>
<%=FP_FieldVal(fp_rs,"InvoiceDate")%></td>
<td>
<%=FP_FieldVal(fp_rs,"InvoiceNumber")%></td>
<td width="115">
<p align="right">
<%=formatcurrency(FP_FieldVal(fp_rs,"InvoiceAmount"),2)%>
</td>
</tr>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</table>
</tbody>
</table>
I was hoping that I could use that same distinct date query to choose the date needed in my original post.
So, by choosing a date the query would return that date and the past 6 days.
Thanks again !