Deleting Records with a Query

If you want to remove records from a table based on a criterion or criteria, you can do so with a delete query . The delete query searches the table you specify and removes all records that match your criteria. Because Access permanently deletes these records, use caution before you run a delete query. You can preview the results before you actually run the query. By clicking the Datasheet View button, you can see which records will be deleted before you actually run the query.

Create a Query to Delete Records

graphics/1_icon.jpg

In Query Design view, create a select query.

graphics/2_icon.jpg

Click the Query Type button list arrow on the Query Design toolbar, and then click Delete Query.

graphics/3_icon.jpg

Click the Datasheet View button on the Query Design toolbar to preview the list of deleted records.

graphics/4_icon.jpg

If you're satisfied that the appropriate records would be deleted, click the Design View button to return to Query Design view.

graphics/5_icon.jpg

Click the Run button on the Query Design toolbar.

graphics/6_icon.jpg

Click Yes when Access asks if you're sure you want to delete records from the table.

graphics/7_icon.jpg

Open the table to view the remaining records.

graphics/06inf20.jpg



Show Me Microsoft Office Access 2003
Show Me Microsoft Office Access 2003
ISBN: 0789730049
EAN: 2147483647
Year: 2002
Pages: 318

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net