|
Peter Schwartz -> RE: Date Range Queries Using Access and Front Page 200 (2/20/2002 0:39:08)
|
Ginnie and Chameleon, Thank you for your suggestions. I was finally able to solve 80 percent of my problem in the following way. The key to the DRW workaround for date range queries is to leave the "'" character surrounding the ::DateField:: parameter in the DRW. After saving file, go into the HTML and change the "'" characters surrounding the form names to "#". This is in the grey webbot code. Save the changes and they cascade to the maroon webbot code. When published, this page will initially display an error, but you can enter data into the date fields and return results. To eliminate the error message, use this workaround from William Lee (who helped me enormously with this problem, in general). See http://www.spiderwebwoman.com/resources/dbrwtipsandtricks.asp#return. This tip involves replicating the page, stripping the DRW from the first page (but leaving the forms) and having both post to the second page. This fix works well, but leaves one problem. In pages with other search parameters besides the date range fields, queries will often want to leave the date fields blank. But this returns an error message: "Syntax error in date in query expression '(ActionType LIKE '%%%' AND ReleaseNo LIKE '%33-%' AND Summary LIKE '%%' AND (ReleaseDate BETWEEN ## AND ##))'." How can I tweak this page so that entering data in the date range forms is not necessary? Thanks very much. Peter
|
|
|
|