Thursday, December 3, 2026

Microsoft Access Query Wizard: How to Create Simple Queries

If you've got a table full of customer data but only need a few fields, a filtered list, or records in a particular order, you need a query. Queries are one of the most useful parts of Microsoft Access, and despite the fancy name, they are not magic. Well, maybe a little magic. But the good kind.

A table is where your data actually lives. Your CustomerT table might contain names, addresses, phone numbers, email addresses, credit limits, and plenty of other information. A query lets you ask Access for a specific view of that data, such as a customer phone list, customers in Florida, or everyone with a credit limit over $1,000. You are not making another copy of the customer table. You are saving instructions that tell Access what information to show.

A normal select query is live. When you open it, Access reads the current records from the table and displays the results that match your instructions. If someone adds a new customer to the table tomorrow, that customer can appear in the query tomorrow. If someone edits a customer's name, the query shows the edited name. The query is not a snapshot unless you intentionally create one using other tools.

The easiest way to make your first query is with the Simple Query Wizard. Go to the Create tab and click Query Wizard. Access offers several types of wizards, including Crosstab, Find Duplicates, and Find Unmatched. For a basic list of records and fields, choose Simple Query Wizard.

The wizard first asks which table or existing query should provide the data. Select the table you want, such as CustomerT. You will then see all of the fields available in that table.

Move only the fields you want into the selected-fields list. For example, you might choose CustomerID, FirstName, LastName, and State. You can use the arrow buttons, or simply double-click a field to add it. There is also a button that moves every field over at once, but that kind of defeats the purpose if you only need a small, useful list.

Including the primary key field, such as CustomerID, is generally a good idea. It uniquely identifies each record, so if you have two customers named John Smith, you still know exactly which John Smith you are looking at. The universe has supplied us with enough duplicate names already. No need to make it worse.

After selecting your fields, click Next. Some versions of Access may ask whether you want a Detail or Summary query. For a standard customer list, choose Detail. A detail query shows the individual records. Summary queries are for totals, averages, counts, and similar calculations.

Next, give the query a meaningful name. I would call this one CustomerQ. My usual naming convention is to end tables with T, queries with Q, forms with F, and reports with R. You do not have to use that convention, of course, but use something consistent. Also, I generally avoid spaces in object names. It saves headaches later, especially when you start working with expressions, SQL, macros, or VBA.

Choose Open the query to view information and click Finish. Access saves the query and opens the results in Datasheet View. You now have a query that shows just the four selected fields, without changing the underlying table.

One important warning: although deleting the saved query object does not delete your customer records, editing or deleting records through an updatable query can affect the actual table. A query result is often a live view of the data. If you delete Captain Picard from an editable query, he is gone from the table too. Engage carefully.

The Query Wizard is perfectly fine, especially if you are new to Access or your instructor specifically says to use it. But once you understand the basics, you will probably find that Query Design is faster and gives you much more control.

To create the same query manually, go to Create and click Query Design. Add the table you want, such as CustomerT, to the design area. Then double-click the fields you want in the grid below: CustomerID, FirstName, LastName, and State. Save the query as CustomerQ, then click the red exclamation point, called the Run button, to see the results.

That is all the Simple Query Wizard did behind the scenes. It created a select query and added your chosen fields. Query Design just lets you see and control the parts directly.

The real advantage of Query Design becomes obvious when you want to filter records. Suppose you only want customers in Florida. In the Criteria row beneath the State field, enter FL. When you run the query, Access displays only records where the State field contains FL. The other customer records are still safely sitting in the CustomerT table. The query is simply choosing not to show them.

You can use the same idea for numbers. Suppose you want customers whose credit limit is at least $1,000. Add the CreditLimit field to the design grid and enter >=1000 in the Criteria row. Do not use quotation marks around a number, and do not type a dollar sign or comma. This is a numeric comparison, not text.

If you use >1000, Access returns only customers whose credit limit is greater than $1,000. Customers at exactly $1,000 are excluded. If you use >=1000, customers with exactly $1,000 are included. Yes, those symbols from math class are back. They were waiting for you.

Sorting is just as easy. In the Sort row under LastName, choose Ascending to sort alphabetically from A to Z. Choose Descending to reverse it. You can also sort CreditLimit descending to put the customers with the highest limits at the top of the list.

Once you get comfortable with this, you can save separate queries for separate jobs. You might keep CustomerQ for a general list, FloridaCustomersQ for Florida customers, and HighCreditCustomersQ for people with larger credit limits. All of those queries can use the same CustomerT table. There is no need to make duplicate tables just to see your data in different ways.

The Simple Query Wizard is a good place to begin because it walks you through choosing a data source, selecting fields, naming the query, and opening the results. But Query Design is where you will spend most of your time once you start building practical Access databases. It makes filtering, sorting, adding fields, and changing your query much easier.

Watch the embedded video for a full walkthrough of creating the query with both the Query Wizard and Query Design, along with examples of criteria and sorting. Once you build a few simple queries, you will wonder how you ever worked with a giant table full of columns you did not need.

Live long and prosper,
RR

Include the Whole End Date in Microsoft Access

If your query misses orders later on the end date, check where the cutoff lands. Between includes both endpoints, but an end date without a time means midnight at the start of that day. Use a start date that is inclusive and an exclusive cutoff at midnight at the start of the next day. My Date Criteria lesson shows the difference.

Include the Whole End Date in Microsoft Access

For a complete step-by-step video tutorial on this topic, including additional examples and explanations, please visit https://599cd.com/DateCriteria.

Catch VBA Typos with Option Explicit in Microsoft Access

Ever mistyped a variable name and wondered why nothing worked? Put Option Explicit at the top of your VBA module, then compile the project. Access will flag an undeclared name instead of treating the typo as a new variable. Turn on Require Variable Declaration for new modules and check existing modules separately. My Option Explicit video shows how.

Catch VBA Typos with Option Explicit in Microsoft Access

For a complete step-by-step video tutorial on this topic, including additional examples and explanations, please visit https://599cd.com/OptionExplicit.

Wednesday, December 2, 2026

How Can You Move a Label Without Moving Its Text Box in Microsoft Access? Video Quiz B2.2

Time for a quick Access Forms quiz. These are beginner-level questions, but they cover little details that can make the difference between a clean, professional-looking form and one that looks like the controls escaped during a fire drill. Give yourself a few seconds for each question before checking the answer.

This quiz covers nudging controls, moving attached labels independently, adding groups of fields, lining up labels, and clearing saved form filters and sorting. Keep track of your score and see how your form-design engine is running.

Question 1: In Access Form Design View, what happens when you select a control and hold Ctrl while pressing an arrow key?

A. The control is copied in that direction
B. The control moves one pixel at a time
C. The control moves one grid interval at a time
D. The control is resized in that direction

Answer: B. The control moves one pixel at a time. This is called nudging a control. Regular arrow keys move the selected control according to the grid spacing, which is handy for rough placement. Hold Ctrl while pressing an arrow key when you need that final tiny adjustment. Sometimes one pixel really does make the difference between "nice" and "why does that look crooked?"

Question 2: A text box has an attached label on an Access form. How can you move only the label without moving the text box?

A. Drag the text box's sizing handle
B. Change the label's Caption property
C. Drag the label using its upper-left move handle
D. Delete the text box and add it again

Answer: C. Drag the label using its upper-left move handle. When Access creates a text box, it normally gives it an attached label. If you drag the control as a whole, the text box and label tend to travel together. However, the label has its own move handle in the upper-left corner. Grab that handle to move just the label, perhaps above the text box or farther to the left, while leaving the data-entry box exactly where it belongs.

Question 3: In the Add Existing Fields pane, what is the quickest way to select one continuous range of fields before dragging them onto a form?

A. Click the first field, hold Shift, and click the last field
B. Double-click the first field, then click the last field
C. Hold Alt and drag across the field names
D. Select the fields after they are already on the form

Answer: A. Click the first field, hold Shift, and click the last field. Shift selects a continuous block of items. If you need several adjacent fields from the field list, click the first one, hold down Shift, and click the last one. Everything in between is selected and ready to drag onto the form in one shot. Much easier than dragging every field individually like you have all afternoon.

Question 4: You have several form labels that are unevenly positioned and different widths. Which pair of commands makes their left edges line up and gives them all the width of the widest label?

A. Align Top, then Size to Tallest
B. Align Right, then Size to Narrowest
C. Center, then Size to Fit
D. Align Left, then Size to Widest

Answer: D. Align Left, then Size to Widest. First, select all of the labels you want to straighten out. Use Align Left to give them one shared left edge. Then use Size to Widest to make every selected label as wide as the widest one. This is a fast way to clean up a form layout without manually dragging every label edge and slowly losing your sanity.

Question 5: A bound form has saved Filter and Order By properties from earlier work. What happens if you clear both properties in Design View?

A. The underlying table records are deleted
B. The form no longer uses those saved filtering and sorting settings
C. The form becomes unbound and cannot display records
D. Access permanently removes the fields used by the filter

Answer: B. The form no longer uses those saved filtering and sorting settings. The form is still bound to its Record Source, such as CustomerT. Clearing the Filter and Order By properties simply removes the saved instructions that told the form which records to show and what order to show them in. The underlying table data is untouched. No records are deleted, no fields disappear, and the form does not suddenly become unbound.

How did you do? If you got all five, congratulations: your labels are aligned, your controls are properly nudged, and your form engine is running smoothly. If you missed a couple, no worries. These are exactly the kinds of small Access details that become second nature with a little practice.

The embedded video includes the quiz questions and answers, and these topics are covered in more depth in Microsoft Access Beginner Level 2, Lesson 2 on form design.

Live long and prosper,
RR

Recalculate Totals on Return in Microsoft Access

If your Customer form still shows yesterday's math after you edit an order, save the order first. Then use the Customer form's On Activate event to run Me.Recalc when you switch back. It recalculates the controls without rebuilding the form's record list.

Watch the Recalc and On Activate lesson to see it work with a customer and their orders.

Recalculate Totals on Return in Microsoft Access

For a complete step-by-step video tutorial on this topic, including additional examples and explanations, please visit https://599cd.com/ReCalcOnActivate.

Tuesday, December 1, 2026

Group Report Details in Microsoft Access

Seeing the same customer on every row of your report? Group by CustomerID and move the customer's name into the group header. Leave the contact fields in Detail so each contact still gets its own line. CustomerID needs to be in the source query, but you don't have to print it. My Sorting & Grouping video shows where to put everything.

Group Report Details in Microsoft Access

For a complete step-by-step video tutorial on this topic, including additional examples and explanations, please visit https://599cd.com/Grouping.

Are You Overengineering Your Microsoft Access Database? When to Simplify or Experiment

It is easy to turn a simple Microsoft Access project into a six-month engineering expedition. You start with a customer table and an order form, and before long you are planning multi-warehouse inventory, barcode scanners, automatic purchasing, role-based permissions, and possibly a warp-drive button for the main menu. The question is not whether you can build those things. The question is whether you should build them right now.

Good database design is a balancing act. You want to solve the business problem that exists today, make sensible decisions that leave room for likely growth tomorrow, and still give yourself time to experiment and learn. The trouble starts when those three goals get mixed together without anybody noticing.

A useful principle from software development is YAGNI: You Aren't Gonna Need It. That does not mean you should never plan ahead. It means you should be careful about investing real time, complexity, and maintenance effort into a feature that nobody needs and may never request.

Suppose you are building inventory software for a business with one location. Adding a LocationID field to your inventory-related tables might be smart. It is inexpensive, it does not complicate the application much, and it gives you a cleaner path if the company eventually opens a second location.

On the other hand, building warehouse transfer forms, location-specific stock reports, multi-site security rules, and complicated inventory allocation logic for a second warehouse that may never exist is a different story. That is no longer simple planning. That is paying a large price for a maybe.

Before adding a feature, ask two very practical questions: Who is going to use this? And what problem will it solve? If there is no clear answer, the feature probably belongs on a future wish list instead of in the current development schedule.

I use a similar rule when shopping: "Where are you going to put it?" Something may look useful, interesting, or shiny, but if you cannot explain where it belongs, perhaps you do not need to bring it home. Database features are the same way. Every extra form, query, table, control, and line of VBA code has to live somewhere, be tested, be maintained, and eventually be understood by Future You.

Now, simple does not mean sloppy. A small Access database still deserves properly designed tables, sensible relationships, referential integrity where appropriate, regular backups, and code that makes sense when you return to it six months later. Those things are not fancy extras. They are part of building a system correctly.

A database with only three forms can still be badly designed. A database with a hundred features can still be well designed. The goal is not to build the fewest possible features. The goal is to build the right features well.

There is another side to this, though. Experimenting is valuable. Playing with Access, trying unusual ideas, breaking things, fixing them, and asking "Can I make this work?" is one of the best ways to become a better developer.

The important distinction is that experimenting has a different purpose from delivering a finished product. If you are building a production database that has to go live Monday morning, Friday afternoon is probably not the ideal time to learn custom animated button effects. Get the essential work done first: entering records, validating data, producing correct totals, printing reports, backing up the database, and testing the full workflow.

The dancing penguin in the corner can wait. He is patient.

But if you are working in a test copy of the database, a sandbox project, or simply spending an afternoon learning, then trying something unnecessary may be exactly the right thing to do. You may discover a useful VBA technique, a cleaner form design, a better report layout, or an approach that becomes valuable in a future project.

A lot of programming knowledge comes from tinkering with things before there is a deadline hanging over your head. You try an idea. Sometimes it works. Sometimes it does not. Sometimes it works perfectly, but you realize it is not worth the extra complexity. All three outcomes teach you something useful.

That is why it helps to ask yourself which hat you are wearing right now. Are you wearing the product builder hat, where the job is to deliver a reliable solution for someone who needs it? Or are you wearing the skill builder hat, where the job is to explore, learn, and satisfy your curiosity?

Both hats are worthwhile. The problem is confusing them. If you tell a client, boss, or coworker that you will have an order entry system ready next week, then the business requirements come first. If you want to learn about barcode scanning, automatic reorder calculations, or multi-location inventory, schedule time to explore those things separately.

Keep a copy of your database specifically for testing. Make a small practice file. Try weird expressions, VBA ideas, report tricks, and form techniques there. That gives you permission to learn without risking the database that people depend on every day.

When deciding whether a feature belongs in the current project, think about the cost of adding it now versus the cost of adding it later. Some decisions are cheap to make early, such as using a proper primary key, normalizing your tables, or leaving room for a likely relationship. Other decisions can multiply the complexity of the whole application. Those deserve more skepticism.

If a feature only adds a small amount of effort and protects against a very likely future need, it may be responsible planning. If it triples development time, creates a pile of new forms and reports, and solves a problem nobody has, it is probably overengineering.

Build the solid foundation. Use good table design. Protect the data. Make backups. Write clear code. Then deliver the features people actually need. After that, make time to experiment, because curiosity is how you learn the things that make you a better developer tomorrow.

The embedded video goes into this idea in more detail, including some real-world examples of where sensible planning ends and needless complexity begins. Just remember: build what needs to be built today, leave room for reasonable growth, and try not to spend Friday afternoon building a warp-drive button for a database that ships on Monday.

Live long and prosper,
RR