marty said:
Thanks! I'm learning a lot here. Let's say I have a Products page with ten
products, each with a photo and text description. If I want to change a
product and/or the text that goes with it from time to time, how would I do
that?
For example, for product 2 & 4 I want to run a special every weekend for a
month at 25% off and then have those two products return to regular price
when the month ended.
I would set up:
o A database table named products, with one record for each product.
This record would contain a product id, a description, the standard
price, and whatever else I wanted to remember about it.
ProductId Description Price
--------- --------------- -----
24 2x4, 8' 5.00
37 Hammer, Claw 15.00
43 Nails, 12p, 1# 3.00
o A second table named specials, which would contain at minimum
a product id, a start date, an end date, and a discount percent
or price. Here's an example
ProductId Start Date End Date Discount
--------- ----------- ----------- --------
24 7-Feb-2004 8-Feb-2004 25%
24 14-Feb-2004 25-Feb-2004 25%
24 21-Feb-2004 22-Feb-2004 25%
24 28-Feb-2004 29-Feb-2004 25%
where ProductId 24 identifies 2x4's.
Then, I would write some program code that took the temporary
discounts into effect when displaying price lists, and perhaps listed
items currently on sale on the home page.
Unfortunately, this sort of thing really exceeds what the built-in
FrontPage database features can do. You would have to write your own
program code in ASP, ASP.NET, or some other Web-server-based
programming environment. Particularly if, as often happens, you want
to start pulling the product and price information from your existing
inventory or point-of-sale system.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------