Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

delete queries

ResolvedVersion Standard

Lisa has attended:
Access Intermediate course

Delete Queries

How do you create a delete query?

RE: Delete Queries

Hi Lisa, Thank you for the post, welcome to the forum, to create a Delete Query follow these steps;
1. In the database window click on the Queries object and then on the New Query button.
2. In the New Query dialog box, choose Design View and click OK.
3. In the show table dialog box, select the table that contains the fields that you want to use and click on the Add button. Add any other tables you wish to use.
4. When all tables have been added to the Query Design window, click on the Close button.
5. Add the fields to the Field Row in the design grid. and specify the criteria required.
6. Click the Run Button or choose Query> Run command. This will run the query initially as a Select Query so that you can verify exactly which records will eventually be deleted from the relevant table.
7. Convert the Select Query to a Delete Query by selecting the Delete Query option from the Query Type list or by choosing the Query> Delete Query command.
8. Click on the Run button or choose Query> Run command to carry out the query. you will be given a warning, if you wish to continue click on the Yes button to delete the records or No to cancel the operation.
I hope that helps, best regards Pete.

Access tip:

Create An Inaccessible Field On A Form

There is sometimes a need to make a field in a form look like a normal field but be completely inaccessible to the user. To do this:

In the Field's Properties
Set the ENABLED property to No
Set the LOCKED property to Yes

The field will not grey out, but the user will not be able to do anything with it.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.