How to Write SQL Statements in Microsoft Access

By Keith Johnson

Rate: (2 Ratings)

You don’t have to use the Select Query window in Microsoft Access to extract information from your database. Using Structured Query Language (SQL) is often quicker and easier. Here are the basics.

Instructions

Difficulty: Moderately Easy

Step1
Open your database.
Step2
In the Database window, click the Queries button under Objects.
Step3
Double-click Create query in Design view. Or click New in the Database window toolbar, click Design View (if it’s not already selected) and click OK.
Step4
Close the Show Table box without adding any tables.
Step5
Click the SQL view button on the toolbar.
Step6
Type “SELECT *” and press Enter. This statement will select all the columns from a table.
Step7
Type “FROM” and the name of the table containing the data you want to see. For example: FROM Customers.
Step8
Run your query: Click the Run icon (the exclamation point) in the toolbar or click Run from the Query menu.

Tips & Warnings

  • Access places a SELECT statement followed by a semicolon in the SQL view window before you type any SQL code.
  • Adding a semicolon at the end of your SQL code is optional in Access.

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article: How to Write SQL Statements in Microsoft Access

eHow Member: Keith Johnson

Keith Johnson

Authority Authority | 3000 Points

Category: Computers

Articles: See my other articles

Related Ads