FP2000: How to Delete a Record from Microsoft Access 2000
ID: Q240200
|
The information in this article applies to:
SUMMARY
This article describes how to delete a record from a Microsoft Access 2000
database by using FrontPage 2000 and Active Server Pages (ASP).
MORE INFORMATIONGetting Ready to Use the ASP Features in FrontPage 2000
Before you can use the ASP features in FrontPage 2000, you must install the
following components:
- A 32-bit ODBC driver
- An ASP-compatible server, such as one of the following servers:
- Microsoft Internet Information Server (IIS) version 3.0 or 4.0 for Microsoft Windows NT Server
- Microsoft Peer Web Services for Microsoft Windows NT Workstation
- Microsoft Personal Web Server for Microsoft Windows 95 with the ASP engine added
- Microsoft Personal Web Server 4.0
- FrontPage 2000 Server Extensions
NOTE: Microsoft Personal Web Server version 4.x, Internet Information Server 4.x, and Microsoft Peer Web Services for Microsoft Windows NT Workstation include the ASP engine and thus do not require a separate installation of the ASP engine. Versions earlier than Microsoft Personal Web Server 4.x and Internet Information Server 4.x require that the ASP engine be installed.
How to Delete a Record in a Microsoft Access Database Using ASP
- Start Microsoft FrontPage 2000 and create a new web (on the File menu, click New and then click Web). In the Specify the location of the new web box, type http://localhost/aspsample, and click the Web site default of One Page Web.
- On a new page, on the Insert menu, point to Database, and click Results.
- In Step 1, select the Use a sample database connection (Northwind) check box, and click Next.
- In Step 2, select Employees as the Record Source, and then click Next.
- In Step 3, click Next.
- In Step 4, select List - one field per item in the Formatting list and Text fields in the List options list, and then click Next.
- In Step 5, click Split records into groups, and type 1 in the Records per group box. Click Finish.
- Double-click the Submit button, and change the Value/Label field to Delete.
- Right-click inside the form, and click Form Properties.
- In Form Properties, click the Send to other button, and then click Options.
- In the Action field, type Delete.asp. Click OK twice and then save the page as Delete_Form.asp.
- Create a new page. (On the File menu, point to New, click Page, and click Normal Page.)
- On the Insert menu, point to Database, and click Results.
- In Step 1, click the Use an existing database connection button, and select ASPsample. Click Next.
- In Step 2, click the Custom query button, and then click Edit. In the SQL statement window, type the following SQL code:
Delete Distinctrow FirstName from Employees where FirstName='%%FirstName%%' and LastName='%%LastName%%'
Click OK and then click Next.
- In Step 3, click Next.
- In Step 4, select Table-One Record Per Row and then click Next.
- In Step 5, make sure the Add search form check box is not selected. Click Finish and then save the page as Delete.asp.
NOTE: The field names FirstName and LastName represent the fields used in the Aspsamp.mdb file. The fields %%FirstName%% and %%LastName%% represent the one-line text box form fields.
Additional query words:
front page
Keywords : kbdta fpse2000
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbinfo
|