|
BeTheBall -> RE: Database Search by Relative Zip Code (6/10/2004 18:22:27)
|
Assuming you already have a connection to your database, open a new page in FrontPage and then click "Insert" - Datatbase Results. This will launch the Wizard. In step 1, choose your connection. Step 2, choose the table you wish to query. In step 3, choose "More Options" and then criteria. Click "Add" and choose your ZIP code field from the form field list. Unfortunately, FP will not let you choose Between at this stage, so choose "Equals" as the comparison and choose the zip field again in value. Click OK. Then click the default option and enter something like 25 as a default value. Then click OK 3 times and then Next to move to step 4. Click next again to move to Step 5. Make sure the "Add Search Form" field is checked and finish. Save the page. You will then have to switch to HTML view and in the gray code find the line that begins with, s-criteria= edit that line so that instead of ZIP=::ZIP it reads ZIP BETWEEN ::ZIP::-50 AND ::ZIP::+50. Then save the page. That should work.
|
|
|
|