Click here to Skip to main content
15,867,765 members
Articles / Productivity Apps and Services / Microsoft Office
Tip/Trick

Quick-and-Dirty Testing of Microsoft Access Queries

Rate me:
Please Sign up or sign in to vote.
3.67/5 (3 votes)
28 Jan 2014CPOL 22.3K   5   2
How to query Microsoft Access tables

Access Data in a Microsoft Access Database

Say what you will about it, Microsoft Access is still widely used (and abused?)

At any rate, if you work with Microsoft Access, you may want to run a query against it to see what data you will get or to perform a sanity check on your SQL statement. To do so is easy, but not necessarily intuitive.

Just follow these steps:

  1. Open MSAccess by 2-clicking the appropriate .MDB file (the database you want to query)
  2. Select the "Create" tab
  3. Select the "Query Design" icon
  4. Mash the "Close" button on the "Show Table" dialog
  5. Right-click in the query window and select SQL View
  6. Enter your query in the window (overwriting the default "SELECT;")
  7. Mash the Run button (red exclamation mark) on the Design tab
  8. Gaze in wonder at the data returned, batting your eyelashes coquettishly if you're a chick or pounding your chest thunderingly if you're a cat.

Note: This works for Access 2007; other versions of Access should work similarly.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Across Time & Space
United States United States
I am in the process of morphing from a software developer into a portrayer of Mark Twain. My monologue (or one-man play, entitled "The Adventures of Mark Twain: As Told By Himself" and set in 1896) features Twain giving an overview of his life up till then. The performance includes the relating of interesting experiences and humorous anecdotes from Twain's boyhood and youth, his time as a riverboat pilot, his wild and woolly adventures in the Territory of Nevada and California, and experiences as a writer and world traveler, including recollections of meetings with many of the famous and powerful of the 19th century - royalty, business magnates, fellow authors, as well as intimate glimpses into his home life (his parents, siblings, wife, and children).

Peripatetic and picaresque, I have lived in eight states; specifically, besides my native California (where I was born and where I now again reside) in chronological order: New York, Montana, Alaska, Oklahoma, Wisconsin, Idaho, and Missouri.

I am also a writer of both fiction (for which I use a nom de plume, "Blackbird Crow Raven", as a nod to my Native American heritage - I am "½ Cowboy, ½ Indian") and nonfiction, including a two-volume social and cultural history of the U.S. which covers important events from 1620-2006: http://www.lulu.com/spotlight/blackbirdcraven

Comments and Discussions

 
QuestionMy vote of 1 Pin
GuyThiebaut29-Jan-14 2:02
professionalGuyThiebaut29-Jan-14 2:02 
GeneralRe: My vote of 1 Pin
B. Clay Shannon29-Jan-14 3:38
professionalB. Clay Shannon29-Jan-14 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.