Nicholas
While I agree you present a very elegant and detailed correct solution
- it makes several presumptions that may cause the user problems
a) that the Excel spreadsheet is in a valid data table layout
(if not the Access import will fail and you can not use a database)
b) that the users site is on a Windows Hosted Server that supports Access
DB and ASP
(if not the whole exercise is futile)
IMHO
The simplest solution (w/o presumptions) is to save the Excel file as html
and File Import it into the FP site
(or even copy paste from the Excel sheet to the FP page)
--
_____________________________________________
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
_____________________________________________
| Dear rinkadink,
|
| My friend, you are about to enter the beautiful world known as the
| "Microsoft Office Suite" - an amazing place where every program loves
| every other program, and all data is shared by all programs. Now you
| will find out why Microsoft Office is the most popular and best selling
| software of all time. An incredibly difficult set of programming and
| data conversion tasks will suddenly become easy and routine for you to
| do. Let us bow our heads in a moment of reflection, and take three deep
| breaths. Ready? Good. Let us begin.
|
| Data is data is data. A good place to store, retrieve, search for, and
| sort data is a database. An excellent database program for almost all
| small and medium sized tasks, like yours, is MS Access - part of the
| Office suite. Open Access, and create a new, blank database on your
| hard drive. Call it, say, stats.mdb. Now let us get some data.
|
| To get the Excel files into your new Access database, go to File -> Get
| External Data -> Import... and change the FILE TYPE to import (at the
| bottom of the import window) to .xls files. Then, browse to the Excel
| file you want to import, and format the incoming data as it suits you.
| Access will save the data in a TABLE with the name of the original
| sheet. Right click the table, and rename it to something more
| descriptive of those particular stats (I'm guessing by date here) like
| jan_06, feb_06, etc. Import all the Excel spreadsheets, one by one,
| like this, remember to rename the new tables with your new, descriptive
| naming convention. You'll see why in a second. When you are done, close
| Access, and open FrontPage.
|
| Open your website, and go to File -> Import... and browse to your
| database on your hard drive. While importing the database, FP will ask
| you if you want to create, and name, a new 'Database Connection'. Do
| you? Sure! Let's name it, say, stats, and not the default 'Database 1'.
| Again, you will see why in a second. Then, FP will ask you if you want
| to store your database in the recommended 'FPDB' folder. Again, the
| answer is: Sure!
|
| Next, let us display the data from the database. Create a new webpage
| in your sites' theme (empty out an existing page, and use File -> Save
| As... so we don't lose the existing page) and name it, say,
| stats_template.asp, so we can create many different database results
| pages from the one new template page. Click the place on the page where
| you would like to show the records, and choose Insert -> Database
| Results. A groovy feature of FP, the 'Database Results Wizard', will
| open. Now we are in the home stretch.
|
| The database connection source will be our newly made 'stats'
| connection (if you have many databases, the naming we did earlier makes
| life easier than the default name 'Database 1', see?). The data source
| (TABLE) will be, say, jan_06 (see why we named the tables more
| descriptively in the beginning?), and then choose the fields, formats,
| queries, etc. that suit you. When you are finished, save the page as,
| say, stats_jan06.asp, and go preview it, live in your browser. Do the
| same for all the other tables (that used to be Excel files), and save
| them each with descriptive names according to your naming convention.
|
| Finally, change your present page:
|
|
http://www.mulliganssoftball.com/statistics.html
|
| to include links to your new data access pages, and on every data
| access page, include links back, etc. Now, rinkadink, you are no longer
| a website hobbyist, you are a full-fledged database administrator and
| webmaster. Women love you, men envy and admire you. Life is sweet.
|
| The FrontPage Database Results Wizard can also make a search (query)
| for your page; it can limit the number of results per page; you can
| format the text as you wish; link to individual players stats, if they
| exist; etc. etc. etc. You will play with it. You will learn to use it.
| You will be amazed at yourself.
|
| Every month, when you get the new stats, open Access FROM WITHIN
| FrontPage by double-clicking the stats.mdb file in the /fpdb/ folder,
| and import your new Excel data into a new table with a descriptive
| name. When you close Access, FP will automatically upload the new
| version of your database. When that is done, open your original
| stats_template.asp page, create the new results, and Save As...
| whatever.asp and link to it.
|
| You are sensational human being, rinkadink, and I am going to write a
| song about you. Thanks for the lyrics. Good luck.
|
| Nicholas Savalas -
http://savalas.tv
|