You can create a form in Microsoft FrontPage 2000 and have the results from the form written to a Microsoft Excel 2000 workbook. This article gives an example of how to create the workbook and form, and then how to connect them.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs.
If you have limited programming experience, you may want to contact a Microsoft Certified Partner or Microsoft Advisory Services. For more information, visit these Microsoft Web sites:
Microsoft Certified Partners -
https://partner.microsoft.com/global/30000104Microsoft Advisory Services -
http://support.microsoft.com/gp/advisoryserviceFor more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS
To create a sample workbook and form, follow these steps.
Create the Excel Workbook
- Start Excel 2000.
- In cell A1, type First_name.
- In cell B1, type Last_name.
- In cell C1, type E_mail.
- Select cells A1:C1.
- On the Insert menu, point to Name, and then click Define.
- Click Add, and then click OK.
- On the File menu, click Save As.
- In the File name box, type a name for the file, and then click Save.
- Quit Excel.
Create the Form
- Start FrontPage 2000.
- Open the Web that you want to add the form to.
- On the File menu, point to New, and then click Page.
- On the General tab, click Normal Page, and then click OK.
- On the Insert menu, point to Form, and then click Form.
- On the Insert menu, point to Form, and then click One-Line Text Box. Press ENTER.
- Repeat step 6 two more times.
- Click to the left of the first text box, and then type First Name.
- Double-click the first text box.
- In the Name box, type First_name, and then click OK.
- Click to the left of the second text box, and then type Last Name.
- Double-click the second text box.
- In the Name box, type Last_name, and then click OK.
- Click to the left of the third text box, and then type E_mail Address.
- Double-click the third text box.
- In the Name box, type E_mail, and then click OK.
Import the Workbook into the Web
- On the File menu, click Import.
- Click Add File, browse to and click the Excel workbook, and then click Open.
- Click OK.
- If you have a folder named fpdb in the Folder List, drag the workbook into the fpdb folder, and then proceed to the next set of steps.
- In the Folder List, right-click the root folder of the web, and then click New Folder.
- Type fpdb, and then press ENTER.
- Drag the workbook to the new folder.
Connect the Workbook to the Form
- On the Tools menu, click Web Settings.
- On the Database tab, click Add.
- In the Name box, type a name for this database connection.
- Click File or folder in current Web, and then click Browse.
- In the Files of type box, point to the arrow and then click Microsoft Excel Driver.
- Browse to the fpdb folder, click the workbook, and then click OK.
- Click Advanced, and then click Add.
- In the Name box, type ReadOnly.
- In the Value box, type 0, and then click OK.
- Click OK twice.
- Click Verify, and then click OK.
- Right-click anywhere on the form, and then click Form Properties.
- Click Send to database, and then click Options.
- On the Database Results tab in the Database Connection to Use box, point to the arrow, and then click the database connection that you named in step 3.
- In the Table to hold form results box, point the arrow, and then click first_name.
- On the Saved Fields tab, click First_name, click Modify, and then click OK.
- Repeat the previous step for form fields Last_name and E_mail.
- Click OK twice. If you receive an error message about the file extension of the page, click OK.
- On the File menu, click Save As.
- In the Save as type box, point to the arrow, and then click Active Server Pages.
- Type a name for the file, and then click OK.
Test Your Form
- Publish your Web. The Web server can be Microsoft Personal Web Server or any server with FrontPage extensions.
- Browse to your form with your Internet browser.
- Enter text in all the fields in the form.
- Click Submit.
- Start Excel.
- On the File menu, click Open.
- Browse to the published location of the Web, and then open the workbook.
NOTE: You should see that your submitted data is in the second row of the workbook. A subsequent submission would be entered in the next unused row.