Dynamic Web Tutorials and Notes
Delete records
- File>New
- Select Dynamic Page

- Click ASP VB
Script
- Click ‘Create’
- Create a DSNto your database
if necessary (see IV)
- Create a Recordset (see V)
– rsDeleteRecords

- Click ‘Insert > Form’
- Click inside form
- Click ‘Bindings’ tab
- Click LastName

- Click ‘Insert’
- Put semi colon after

- Click FirstName
- Click ‘Insert’
- Click mouse to deselect
- Click ‘Insert>Form Objects>Button’
- Select button and rename it ‘Delete record’ in label box
in properties window (Window>Properties)
- Your page should now look like this:
- Click ‘Server Behaviours’ tab
- Click ‘+’
- Click ‘Delete record’

- Select connection you defined in IV
- Delete from ‘Employees’
- Select record from rsDeleteRecords
- Unique key column is EmployeeID
- Delete by submitting Form1
- After Deleting go to ‘success.htm’ – will make this
later
- Click ‘OK’
- Insert text on page – Warning!! This action cannot be undone

- Insert Recordset Navigation Bar as in
XIV
- Save page as ‘Delete.asp’
- Press F12 to view the page in the browser window:
.
.
.