Computer tutorials, tips, and tricks to help you learn Microsoft Excel, Access, Word, and lots more. Visit our full site at www.ComputerLearningZone.com.
Looking for 'am' in either First Name or Last Name? Put the first criterion on the Look for tab and the second on an Or tab. If you put both on the same tab, Access makes both conditions mandatory. Watch my Multi-Field Find video to see how to set it up.
For a complete step-by-step video tutorial on this topic, including additional examples and explanations, please visit https://599cd.com/MultipleFieldFind.
Ever sort by month name and get April before January? Access is sorting the labels alphabetically. Use Month([CustomerSince]) as your ascending sort field, and use MonthName(Month([CustomerSince])) for the label. This groups the same months together across years, which is handy for birthdays and anniversaries. The video shows both ways to sort.
For a complete step-by-step video tutorial on this topic, including additional examples and explanations, please visit https://599cd.com/SortByMonth.
Think you can survive a Black Friday inventory stampede? This expert-level Access quiz covers five practical topics: proper inventory table design, calculated sale prices, totals queries, date/time criteria, and finding products that need to be reordered. Keep score as you go, and try not to let the Turbo Man figures disappear from the database.
Each question has four choices. Give yourself a few seconds before reading the answer. If you need longer, pause the embedded video and work it out. The important part is not just getting the right answer, but understanding why the other choices can lead to trouble.
Question 1: Turbo Man figures are stocked at many stores, and each store stocks many products. Which table design best tracks quantity on hand by store?
A. StoreInventoryT with StoreID, ProductID, and QtyOnHand B. Add Store1Qty, Store2Qty, and Store3Qty fields to ProductT C. Put every store's inventory in one Long Text field in ProductT D. Create a separate ProductT for every store
Answer: A. Use a StoreInventoryT table containing StoreID, ProductID, and QtyOnHand. This is a junction table. Each record represents one particular product at one particular store.
That design handles the many-to-many relationship properly. One store can stock many products, and one product can be stocked in many stores. More importantly, you can add a new store or product without redesigning the database. Fields like Store1Qty and Store2Qty are a big red flag. Stores are records, not fields. And please do not put inventory data in one giant text field unless you enjoy making queries impossible for no good reason.
Question 2: ProductT stores RegularPrice and DiscountRate. The discount rate is stored as a decimal, so 25% is stored as 0.25. Which calculated query field returns the Black Friday sale price?
A. SalePrice: [RegularPrice] - [DiscountRate] B. SalePrice: [RegularPrice] * (1 - [DiscountRate]) C. SalePrice: [RegularPrice] / [DiscountRate] D. SalePrice: [RegularPrice] + [DiscountRate]
Answer: B. The calculated field is SalePrice: [RegularPrice] * (1 - [DiscountRate]).
A discount rate tells you how much is removed, but the customer pays the amount that remains. A 25% discount means the customer pays 75% of the original price. So Access first calculates 1 minus 0.25, which gives you 0.75, and then multiplies the regular price by that value.
For example, a $49.99 action figure with a 25% discount comes out to about $37.49. The parentheses matter because you want Access to calculate the remaining percentage first. Otherwise, your sale pricing may become more chaotic than the checkout line.
Question 3: OrderDetailT contains ProductID and Quantity. What query approach finds the single best-selling product by total units sold?
A. Sort OrderDetailT by ProductID and use First(ProductID) B. Count ProductID and sort the count descending C. Group by ProductID, sum Quantity, sort the sum descending, and return Top 1 D. Use DLookup to retrieve the last product entered
Answer: C. Group the records by ProductID, calculate Sum on the Quantity field, sort that total descending, and set the query's Top Values property to return one record.
The key word here is units. Counting order-detail records only tells you how many order lines contain a product. It does not tell you how many units were sold. One shopper might buy six Laser Yodeling Elves on one order line. That should count as six units, not one.
Once the query totals Quantity for each product, sorting the total from highest to lowest puts the best seller at the top. Top 1 then keeps only that winning product. DLookup and First have their uses, but neither one magically finds the best-selling item.
Question 4: SaleT has a SaleDateTime field. A doorbuster runs from 6:00 AM up to, but not including, 10:00 AM on November 27, 2026. Which criteria is correct?
A. Between #11/27/2026 6:00 AM# And #11/27/2026 10:00 AM# B. DateValue([SaleDateTime]) = #11/27/2026# C. [SaleDateTime] > #11/27/2026 6:00 AM# And [SaleDateTime] <= #11/27/2026 10:00 AM# D. [SaleDateTime] >= #11/27/2026 6:00 AM# And [SaleDateTime] < #11/27/2026 10:00 AM#
Answer: D. Use [SaleDateTime] >= #11/27/2026 6:00 AM# And [SaleDateTime] < #11/27/2026 10:00 AM#.
This is a very useful date/time pattern. The promotion includes its exact starting time, but excludes its ending time. A transaction at exactly 6:00 AM belongs in the doorbuster promotion. A transaction at exactly 10:00 AM does not.
Why not use Between? Because Between includes both endpoints. That would include a sale at exactly 10:00 AM, which can become a problem if the next promotion starts at 10:00 AM too. Using greater-than-or-equal for the start and less-than for the ending time gives each transaction one clean home.
Question 5: ProductT has ProductID and ReorderLevel. StoreInventoryT has ProductID, StoreID, and QtyOnHand. Some products have no inventory records yet. Which query design finds every product whose total stock is at or below its reorder level?
A. Left join ProductT to StoreInventoryT, group by product, and use HAVING Nz(Sum([QtyOnHand]),0) <= [ReorderLevel] B. Inner join ProductT to StoreInventoryT, group by product, and use HAVING Sum([QtyOnHand]) <= [ReorderLevel] C. Left join ProductT to StoreInventoryT and use WHERE [QtyOnHand] <= [ReorderLevel] D. Group StoreInventoryT by StoreID and compare each store's quantity to the reorder level
Answer: A. Start with ProductT, left join it to StoreInventoryT, group by product, and use HAVING Nz(Sum([QtyOnHand]),0) <= [ReorderLevel].
This question has several important pieces. First, the left join keeps every product from ProductT, including products that have no inventory records yet. An inner join would leave those products out entirely, which is not great when a product has zero stock and is obviously a reorder candidate.
Second, inventory must be totaled across all stores. You are not looking for a store that is low. You are looking for products whose combined inventory is at or below their reorder level.
Third, the Nz function converts a Null total into zero. If a product has no StoreInventoryT rows, Sum([QtyOnHand]) produces Null. Nz turns that into 0 so Access can compare it properly to the reorder level.
Finally, remember the difference between WHERE and HAVING. WHERE filters individual records before grouping and totals happen. HAVING filters grouped results after the aggregate calculation. Since this comparison depends on the summed quantity across stores, HAVING is the correct place for it.
How did you do? Five out of five means you are officially a doorbuster database legend, with every Turbo Man figure accounted for. If you missed a few, no worries. These are exactly the kinds of Access details that make the difference between a database that behaves nicely and one that collapses under holiday-shopping-level pressure.
Watch the embedded video if you want to play along with the timed quiz, and keep these patterns in mind the next time you are designing inventory tables or building totals queries.
The holiday season is here, which means it is time for the one sale I run each year. If you have been thinking about improving your Microsoft Access skills, picking up a seminar, grabbing a template, or finally joining the membership program, this is the best time to do it.
For a limited time through the end of the year, all courses, seminars, and templates are 50% off through the Holiday Sale page. This is not one of those sales that pops up every other week with a different name. I do this once a year, and when the calendar flips over, the special pricing goes away.
If you have a list of Access lessons you have been meaning to work through, now is a good time to knock some of them out. Maybe you want to get more comfortable with queries, forms, reports, relational design, VBA, SQL, or one of the many other topics covered in the courses. Winter is a pretty good excuse to stay inside with a cup of coffee, hot cocoa, or whatever keeps you functioning, and learn something useful.
Of course, I live in Florida, so "winter" usually means turning the air conditioning down to 68 degrees, putting a fireplace video on the television, and pretending it is snowing outside. Every once in a while we get a 50-degree morning, and then I have to put socks on with my sandals. It is rough down here.
The Holiday Sale applies to all courses, seminars, and templates on the sale page. Prior purchases and previous sales are excluded, naturally. You will need to use the special Holiday Sale link to receive the discounted price.
There is also something extra for anyone considering a TechHelp or MYOLP membership. Sign up for an annual membership during the sale and receive an additional month free. That gives you 13 months for the price of 12.
And yes, this works for current annual members too. If you still have several months remaining on your present membership, the extra time is added beyond your current renewal date. You do not lose the time you already have. Just follow the membership link for the details and choose the annual option.
Membership is a great option if you want steady access to training, live help, member videos, and the community without having to purchase every lesson individually. If you are actively building databases for work, school, clients, or your own business, it is often the most economical way to keep learning as new material is released.
And since this is the holidays, a quick reminder from the nice-list department: use meaningful field names, normalize your tables, and set up referential integrity where appropriate. If you have spaces in your field names or multiple values crammed into one field, well, we may need to have a little chat. Santa has standards. Even if his naughty-and-nice list is apparently still running on some ancient legacy system.
Current members should also keep an eye on their email over the next few days. There is a separate holiday offer coming your way as a thank-you for being part of the community.
Whether you celebrate Christmas, Hanukkah, Kwanzaa, Festivus, or any of the many other holidays around this time of year, I hope you have a wonderful season. Take advantage of the sale if there is training you have had your eye on, and watch the video above for all of the details, including this year's questionable AI Santa pictures.
If you close your front end with Compact on Close turned on, Access compacts that copy of the app. It doesn't compact the shared back end where your tables live. Schedule back-end maintenance separately: get everyone out of the file, make a backup, then run Compact & Repair. I explain the difference at the start of Quick Queries #40.
For a complete step-by-step video tutorial on this topic, including additional examples and explanations, please visit https://599cd.com/3603.
Changed the wrong customer? If you're still typing in a field, Undo can take back just that field edit. To throw away all pending edits on the current record, undo the whole record instead. If you've just saved, try the Undo button right away, but don't count on stepping back through several records. Watch the video to see the difference and learn how to add your own Undo button.
For a complete step-by-step video tutorial on this topic, including additional examples and explanations, please visit https://599cd.com/Undo.
Thanksgiving dinner is a lot easier to manage when your Microsoft Access database is properly normalized, your calculations work, and your shopping list does not accidentally tell you to buy twelve jars of gravy that are already in the pantry. Here is a five-question Access quiz covering relationships, calculated queries, outer joins, validation rules, and totals queries.
Give yourself a few seconds for each question before reading the answer. No peeking. The giant mutant turkey is watching, and it has very strong opinions about proper table design.
Question 1: A Thanksgiving recipe can use many ingredients, and an ingredient can appear in many recipes. What is the best table design?
A. Store all ingredient names in one long text field in RecipeT. B. Create RecipeIngredientT with RecipeID, IngredientID, and Quantity. C. Add Ingredient1 through Ingredient20 fields to RecipeT. D. Copy every ingredient into a separate RecipeT record.
Answer: B. Create a RecipeIngredientT junction table with RecipeID, IngredientID, and Quantity. This is a classic many-to-many relationship. One recipe can have many ingredients, and one ingredient can belong to many recipes.
Each record in the junction table represents one ingredient used by one recipe. It is also the proper place for details that belong to that particular pairing, such as quantity, unit, preparation notes, or perhaps whether the celery needs to be chopped before someone realizes it is still sitting on the counter.
Question 2: A stuffing recipe makes 8 servings and uses 3 cups of broth. Which calculated query expression returns the broth needed for a guest count stored in [PlannedServings]?
A. [Quantity] + [PlannedServings] - [BaseServings] B. [Quantity] * [BaseServings] / [PlannedServings] C. [Quantity] * [PlannedServings] / [BaseServings] D. [Quantity] / ([PlannedServings] - [BaseServings])
Answer: C. The correct expression is [Quantity] * [PlannedServings] / [BaseServings].
Start with the amount the original recipe requires. Multiply it by the number of servings you want, then divide by the number of servings the recipe normally produces. If 3 cups of broth serves 8 people, then 12 guests require 3 * 12 / 8, or 4.5 cups. Access handles fractional results just fine, which is good because cooking measurements rarely cooperate with nice whole numbers.
Question 3: You want a query showing ingredients required by selected recipes that have no matching record in PantryT. Which approach is most appropriate?
A. Use an inner join and set PantryT.IngredientID criteria to Is Null. B. Use a left join from RecipeIngredientT to PantryT and test PantryT.IngredientID Is Null. C. Use a right join and test RecipeIngredientT.IngredientID Is Not Null. D. Use a totals query with Count(*) on RecipeIngredientT.
Answer: B. Use a left join from RecipeIngredientT to PantryT, then set criteria on PantryT.IngredientID to Is Null.
The important part is preserving all records from RecipeIngredientT, because that table represents the ingredients your chosen recipes require. When Access cannot find a matching pantry record, the fields on the PantryT side of the join are Null. That is your missing ingredient. An inner join will not work here because it removes the very records you are trying to find. Classic Access gotcha.
Question 4: GuestT has both InviteDate and RSVPDate. You want to prevent an RSVP date earlier than the invitation date while still allowing a blank RSVP date. Where should this rule normally go?
A. In the Validation Rule property of RSVPDate only. B. In the table-level Validation Rule property. C. In the Default Value property of InviteDate. D. In a relationship between GuestT and RSVPDate.
Answer: B. Put this rule in the table-level Validation Rule property.
A field-level validation rule is appropriate when you are checking one field by itself. In this case, Access must compare two fields in the same GuestT record, so the validation belongs at the table level. The logic would be [RSVPDate] Is Null Or [RSVPDate] >= [InviteDate]. That allows an RSVP date to remain blank while ensuring that an entered RSVP cannot somehow arrive before the invitation was sent. Unless you invited a time traveler, which is probably outside the scope of this database.
Question 5: A shopping-list totals query combines RecipeIngredientT with PantryT. For each ingredient, it sums the required quantity and compares it with pantry quantity. If PantryT has at most one record per ingredient, which HAVING criterion correctly shows only ingredients that must be purchased?
A. HAVING Sum([RequiredQty]) < Max(Nz([PantryQty],0)) B. HAVING Count([IngredientID]) = 0 C. HAVING Max(Nz([PantryQty],0)) > 0 D. HAVING Sum([RequiredQty]) > Max(Nz([PantryQty],0))
Answer: D. Use HAVING Sum([RequiredQty]) > Max(Nz([PantryQty],0)).
The RequiredQty values must be summed because multiple selected recipes may require the same ingredient. PantryQty is different. If PantryT contains at most one record per ingredient, it represents one on-hand inventory amount. Using Max prevents that pantry amount from being added repeatedly for every matching recipe line.
The Nz function is important too. If an ingredient has no pantry quantity, Nz turns that Null into zero. Once the total amount required exceeds the amount on hand, the ingredient belongs on the shopping list.
If you got all five right, congratulations: your feast plan is normalized, your RSVP dates make sense, and your pantry query is less likely to trigger a gravy-related emergency. If you missed a few, watch the embedded video for the quiz walkthrough and use these questions as a handy review of some very practical Access fundamentals.