|
pmagas -> DRW dieted and modified (5/9/2007 21:00:36)
|
Hi, all! I'm modifying a search that I set up quite some time ago and have modified along the way. I believe it's close, but I keep getting this error and I can't figure out why. The error is quote:
Database Results Error Description: No value given for one or more required parameters. Number: -2147217904 (0x80040E10) Source: Microsoft JET Database Engine One or more form fields were empty. You should provide default values for all form fields that are used in the query. The query is as follows: quote:
<!--#include file="_fpclass/fpdblib.inc"--> <% myStr = Request.Form("Type") If Instr(myStr,",") > 0 Then arrType = Replace(myStr,", ","%' OR [Type of Units Desc] LIKE '%") Else arrType = myStr End If myStr = Request.Form("Area") If Instr(myStr,",") > 0 Then arrArea = Replace(myStr,", ","%' OR [Area Desc] LIKE '%") Else arrArea = myStr End If fp_sQry="SELECT * FROM MF2analysis WHERE ('::Type of Units Desc::' = '::Type of Units Desc::' AND [Type] LIKE '%"&arrType&"%' AND '::Area Desc::' = '::Area Desc::' AND [Area] LIKE '%"&arrArea&"%' AND [Listing Price] >= ::From:: AND [Listing Price] <= ::To:: AND [Unit 1-# of Bedrooms] >= ::Bedrooms::) ORDER BY [Net Income] DESC,[Listing Price] DESC" fp_sDefault="Type='2-family'&Area='Affton'&From=75000&To=500000&Bedrooms=1" fp_sNoRecords="Sorry - no properties match your criteria today. Please try another search or request a Custom Property Search." fp_sDataConn="mf2analysis" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=5 fp_fTableFormat=False fp_fMenuFormat=False fp_sMenuChoice="" fp_sMenuValue="" fp_iDisplayCols=31 fp_fCustomQuery=True BOTID=0 fp_iRegion=BOTID %> <!--#include file="_fpclass/fpdbrgn1.inc"--> The IF statements before the query are to enable me to use multiple choices for those. The database is downloaded, so I can't change the field names to not include spaces. [:'(] (Those are 'Type of Units Desc' and 'Area Desc') I've tried the default line with just quote:
fp_sDefault="Type=&Area=&From=75000&To=500000&Bedrooms=1" and quote:
fp_sDefault="Type=%&Area=%&From=75000&To=500000&Bedrooms=1" and got the same error message each time. Thank you for any suggestions you might offer! Cheers!
|
|
|
|