Stefan
Sat Apr 01 03:49:07 CST 2006
You don't need to add defaults (or use multiple pages)
All you need to do is wrap the DBRW in a conditional statement that will prevent it from running until you have a value from the
form
In code view
... your query form is here
(with say the form field name is "Search")
<% IF Len(Request.Form("Search") > 0 THEN %>
...DBRW goes here
<% End IF %>
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________
"p c" <nospam@nospam.com> wrote in message news:EYmdnZANCOJ6aLDZRVn-sw@comcast.com...
|I prefer Kathleen's suggestion. It is simpler to debug and keep it clean
| when you separate the form form the processing page.
|
| You are using a combined page that is includes the form that gets
| submitted and also proceses the the form results. If you want to stay
| with a single page, you need to provide default dates or logic (code) to
| not submit the form if either of the date fields are empty.
|
| ..PC
|
| Kathleen Anderson [MVP - FrontPage] wrote:
| > You could split it up, so the search form is on one page and the results are
| > on another:
| >
http://www.spiderwebwoman.com/resources/dbrwtipsandtricks.asp#return
| >