|
|
|
VAMAP Fall 2001 Conference |
|
Chuck DeHart, James Madison University |
|
Evan Davies, Christopher Newport University |
|
November 11, 2001 |
|
|
|
|
Minimum Requirements |
|
Prepare MS Access.mdb |
|
Establish data connection |
|
Make search/results page |
|
Additional features to learn and explore |
|
|
|
|
|
FrontPage server extensions |
|
Microsoft Data Access Components |
|
Database connection types |
|
MS Access |
|
FoxPro, Paradox, dBase, other PC-based* |
|
Database running on web server* |
|
Database running on network server* |
|
*System DSN required |
|
|
|
|
|
|
Create query (view). |
|
Determine display field/column names. |
|
Create select (distinct) query SQL. |
|
Make “Last Updated On (date)” table for searches
on files periodically updated. |
|
|
|
|
|
|
Create/open web |
|
Create subdirectory ../fpdb |
|
Copy access.mdb to ../fpdb |
|
Global.asa created |
|
|
|
|
|
|
|
|
|
|
|
|
Make a template or copy existing template to a
new name . |
|
Edit “Title” under properties (rt. Click in
Folder view) |
|
Be careful to SAVE AS *.asp, not *.html, or code will be lost. |
|
Templates can include database results objects. |
|
|
|
|
|
|
Select desired location. |
|
Launch Database Results Wizard
(Insert-Database-Results) |
|
|
|
|
Use existing db connection or Use new db
connection |
|
|
|
|
Select record source |
|
MS Access queries delivered as “(VIEW)” |
|
Note: Custom Query option |
|
|
|
|
Edit field list if necessary |
|
Select “More Options…” |
|
|
|
|
Consider message to display if no records
returned. |
|
|
|
|
Select “Criteria…” “Add” |
|
Field name… compare …submit value |
|
Check box “Use this search form field” |
|
|
|
|
Choose “Table – one record per row” |
|
Examine other options. |
|
Include header row with column labels |
|
|
|
|
Determine number of records to display |
|
Check box for “Add search form” |
|
|
|
|
|
|
|
|
Select database connection |
|
|
|
|
Select “Custom query” “Edit” |
|
Insert Distinct SQL: SELECT Distinct (<field
name>) FROM <record source name> |
|
|
|
|
Note that only one field is displayed. |
|
|
|
|
Choose format option “Drop-Down List – one
record per item” |
|
|
|
|
“Display all records together” should be your
only option. |
|
|
|
|
|
|
|
|
|
|
Multiple results from a single form |
|
Reusing objects |
|
Deliver “Database Last Updated On….” to many web
pages |
|
Creating a bookmark |
|
Redirecting browser on form submit |
|
Formatting tables |
|
|
|
|
Use Database Results Wizard to create the next
table |
|
In Step 5, turn off “Add search form” |
|
|
|
|
DB results objects may be reused, e.g., pull up
search page for prior year, save in a new name, change controls to connect
to current year data file. |
|
DB results objects can be copied, cut, and
pasted to other locations or pages. |
|
|
|
|
Create a MS Access table containing a memo field
and one record with your update message. |
|
Select this table in step 2 of the Database
Results Wizard. |
|
In step 4, consider display options and turn off
header/column. |
|
Copy to next page or to template. |
|
|
|
|
|
|
Select text to be book marked. |
|
From menu select Insert-Bookmark. |
|
|
|
|
Edit Bookmark name in dialogue box. |
|
|
|
|
|
In Normal view, text area should have a dashed
underline. |
|
In Preview, check for format loss. |
|
If format is lost, in HTML view check code. |
|
Error: <h2 align="left"><a
name="Results">Results: Building with Instruction Related
Space</a></h2> |
|
Edit to: <a
name="Results"><h2 align="left">Results:
Building with Instruction Related Space</h2></a> |
|
|
|
|
Right click on Submit button to select it and
launch menu screen. |
|
Select “Form Properties…” |
|
|
|
|
In the Form Properties box select “Options…”. |
|
In the Options for Custom Form Handler box enter
the bookmark name in the text box for “Action:” |
|
|
|
|
Avoid side bars |
|
Set table properties to fixed pixels |
|
Set column widths to percent |
|
|
|
|
|
Thanks for coming |
|
Enjoy the rest of the conference |
|
|
|
Chuck DeHart, James Madison University |
|
dehartcg@jmu.edu (540) 568-6881 |
|
Evan Davies, Christopher Newport University |
|
edavies@cnu.edu (757) 594-7172 |
|