Microsoft Access

//Microsoft Access

How to Build an Error Handler in Access VBA

2019-03-20T14:14:15-04:00

Dealing with errors in VBA code, especially in Access, is a vital part of setting up procedures. If nothing else, an error-handler can give the user a better idea of what’s glitching, if something does. And having a message box come up to give the user even moderately clear information can be a huge help. It also helps the database admin person, and the VBA coder. There are normally three main steps to setting up an error handling routine. First, right up at the top of the procedure, we need a line to tell it what to do for errors. Some [...]

How to Build an Error Handler in Access VBA2019-03-20T14:14:15-04:00

How to Add a Calculated Field to an MS Access Query

2019-03-15T21:19:34-04:00

Calculated fields are a really big help in Access; they let us derive data from existing information. And they’re flexible, too. If one of the source items changes, the calculation updates immediately, just like an Excel formula. But some people aren’t aware you can add them to a query. And this is an especially cool thing, because every time we run a query, we get the latest info. One example where we might use this capability would be calculating a restock—how many items we need to add. We can open the database, check the table we draw data from, and design [...]

How to Add a Calculated Field to an MS Access Query2019-03-15T21:19:34-04:00

Using the Split Form and Datasheet Form in Microsoft Access

2019-01-22T13:59:46-04:00

The idea of the split form in Access is rather like its cousin in Project. We set up a view with the “big picture” or large-scale view in one portion of the window (usually the top), and details in the bottom. Sometimes vice versa, but the thinking is to have both available for convenience. Creating a split form is very easy, as it’s listed within the regular forms. We select the table we want to work with, go to the Create tab->Forms->More Forms, and click Split Form. The result is to show the data from the table in two ways. One, [...]

Using the Split Form and Datasheet Form in Microsoft Access2019-01-22T13:59:46-04:00

How to Create a Parameter Query in Access

2018-12-27T11:54:37-04:00

The parameter query, while easy to set up, actually depends on a sort of quirk in the program, as we’ll see. But regardless, it’s a very powerful feature; it allows many variations on one question in a database. Ranges of dates, differences in spelling, and many others can fit a parameter query. A parameter query on a range of dates uses the “Between—And” keywords, and has the user enter a starting and ending date as indicated. (Any criteria of this sort go in the Criteria row in Query Design view.) The quirk is, when we want the program to ask the [...]

How to Create a Parameter Query in Access2018-12-27T11:54:37-04:00

Creating an Action Query in Microsoft Access

2018-12-24T17:15:05-04:00

The action query in Access is a different thing from the normal query we create, called a “select” query. The latter simply selects data and shows the result. But an action query edits data, or even deletes it. And the key thing one needs to know about this is one cannot use Undo to reverse the effect. So though we can easily create action queries, we need to treat them carefully. Luckily, there is a way to test them first. We can use a food database for our example. Let’s say we need to increase prices on soft cheese (Category 2) [...]

Creating an Action Query in Microsoft Access2018-12-24T17:15:05-04:00

How to Create a Subquery in Microsoft Access

2018-12-24T14:21:36-04:00

Just as there can be subforms and subreports within an Access form or report, there can be a subquery within a query. As the term implies, a “query within a query” allows the main query to be more specific, or complex. It sometimes requires a little bit of Structured Query Language, or SQL. But this is not a problem. Access is a “shell” over SQL as Windows was a shell over DOS, and the two get along fine. A typical example would be setting up a subquery based on text information, to allow more flexibility with the use of number fields [...]

How to Create a Subquery in Microsoft Access2018-12-24T14:21:36-04:00

Microsoft Access Keyboard Shortcuts

2018-12-24T12:17:15-04:00

SkillForge SkillSheet Microsoft Access 2010/13/16 Keyboard Shortcuts Click here to download the PDF version. Frequently Used Shortcuts   In order to… Press Select the active tab of the ribbon and activate KeyTips Alt or F10  (to move to a different tab, use KeyTips or the arrow keys) Open the Home tab Alt+H Open the Tell me box on the ribbon Alt+Q, then enter the search term Display the shortcut menu for the selected item Shift+F10 Move the focus to a different pane of the window F6 Open an existing database Ctrl+O or Ctrl+F12 Show or hide the Navigation Pane F11 Show [...]

Microsoft Access Keyboard Shortcuts2018-12-24T12:17:15-04:00

How to Use Table Joins in Microsoft Access

2018-08-28T16:20:30-04:00

The use of table relationships in Access allows tables to cooperate in the use of data, but table joins, while they look similar, serve a different purpose. The relationships, which allow coordination while organizing data, nevertheless don’t directly affect, say, the results of a query. Joins do. A table join in a query allows for a filter effect. The thinking is that a query is a question one asks of the database. But redundant answers are no use, and a waste of space. So when we pull data from more than one table, which is frequently the case, we need to [...]

How to Use Table Joins in Microsoft Access2018-08-28T16:20:30-04:00

Using the Three Normal Forms in Microsoft Access

2018-07-16T14:03:33-04:00

One of the more abstruse points of procedure in Access involves the three so-called normal forms. What, exactly, are they? If you think “guidelines”, or “protocols”, you’d be in the ballpark. When building a database, especially a relational database, there are some “streamlinings” which allow it to function more efficiently. Knowing the how is important, but the why can be too. "Why" is what I’d like to go over here. The first of the normal forms is basically this: In any field, in any record of the database, there should be one and only one piece of information. The simplest examples [...]

Using the Three Normal Forms in Microsoft Access2018-07-16T14:03:33-04:00

How to Import and Export Data in Access

2018-06-27T14:52:24-04:00

The good news is, the import and export processes in Access—and in general—are two sides of the same coin. And there really isn’t any bad news, other than making sure the data are set up in a way that Access can understand—namely, something row-and-column-ish when importing. There’s even an External Data tab in the ribbon, so it’s just a matter of knowing what kind of data you’re bringing in, or what format the recipient needs if you’re exporting. For an import, other than making sure you know where the data are, simply go to the External Data tab, and look in [...]

How to Import and Export Data in Access2018-06-27T14:52:24-04:00

Creating Calculated Fields in Microsoft Access

2018-03-30T14:37:54-04:00

When setting up reports in Access, it is sometimes necessary to learn something which wasn’t in the original data, whether calculated, derived, or otherwise figured out from the existing information. It’s fairly easy to do, though there are a few steps involved. After determining the requirement—a sales tax or a shipping fee, and what calculation is needed to find it—we create the field for the calculation. With the report open in Design view, clicking the Design tab under Report Design Tools gives us the Controls group. There, we click the Text Box tool and click or drag where we want the [...]

Creating Calculated Fields in Microsoft Access2018-03-30T14:37:54-04:00

Data Types, Properties, and Relationships in Access

2017-12-18T01:18:34-04:00

A fundamental aspect of Access databases is the setup of relationships between tables. It’s usually the nature of business databases to have them, so the actual creation of the relationship isn’t hard to do. But there are a couple of not-so-obvious things the user needs to know. Once the database is open, and the tables have been created, the first thing is to open the Relationships window from the Database Tools tab-->Relationships group. If there are no relationships already in place, the Show Table dialog box will open automatically. The user can then double-click the tables needed, or select them and [...]

Data Types, Properties, and Relationships in Access2017-12-18T01:18:34-04:00

How to Normalize Data in Microsoft Access

2017-09-24T12:03:54-04:00

The term “normalization” gets thrown about quite a bit in database circles, especially to try to explain to newer users a couple of principles of data organization, but seems rather vague to someone not acquainted with database-ese. The idea of making data “normal” is not too far from the meaning used by database designers, when one understands what “normal” is. When we create, say, a batch of file cards with names, addresses, etc., we tend to lay out the information similarly—consistently—so as to make it easier to follow on each. If each piece of information is in its own place, a [...]

How to Normalize Data in Microsoft Access2017-09-24T12:03:54-04:00

Align Fields in Access Forms

2017-09-10T21:49:04-04:00

Working with Microsoft Access can be kind of intimidating when you start, especially because there seem to be so many details to absorb and keep track of. And even fairly experienced database people have to watch out for the little things. One which really drives some new Access users up the wall has to do with forms. Doing form layout is an art unto itself, and getting a good layout can take time. Even after you've got it mostly cleaned up, the program has one particular nitpick some people don't even notice. At first. When you work on a form in [...]

Align Fields in Access Forms2017-09-10T21:49:04-04:00

Access vs Excel—Which should we use for what?

2017-08-07T11:23:46-04:00

Most people find Microsoft Excel fairly easy to learn—it has a fairly gentle learning curve, the fundamentals only take a short time to pick up, and the program is actually fairly versatile—it’s not just a ledger book on steroids. Microsoft Access, on the other hand, can be kind of intimidating. Some folks hear the word “database” and, to quote the Joker, “they start losing their minds!” The whole idea of a database program is scary because there’s more to learn, more to set up before you can use it, and more to manage even when it’s working fine. So let’s just [...]

Access vs Excel—Which should we use for what?2017-08-07T11:23:46-04:00

Access 2013: Creating a Calculated Field

2016-12-31T23:10:35-04:00

Often times the information you need isn’t stored as a field within a database. As a matter of fact, certain fields make more sense to calculate whenever they are needed instead of storing the value in a table. Microsoft Access 2013 makes this very easy. To create a calculated you will need a query in Design View. Select the Create tab and in the Queries group click Query Design button. The QBE (Query by Example) window opens and the Show Table dialog box is ready for you to add the table or tables you need. Once the table / tables are [...]

Access 2013: Creating a Calculated Field2016-12-31T23:10:35-04:00

Access 2013: Saving a Filter as a Query

2016-12-31T22:18:39-04:00

You find yourself working in an Access table filtering out some unnecessary data and it dawns on you this filtering is something you’ll end up doing frequently. It would make sense to store this process as a query in the database. Okay, so now I have to switch over to the Create tab and design a new query based on the filter I just applied. Or do I? You can actually save the filter you just applied as a query. The process is simple. Go to the File tab and choose Save As > Save Object As > Save As. Once [...]

Access 2013: Saving a Filter as a Query2016-12-31T22:18:39-04:00

How to Import Excel Data into Microsoft Access

2016-07-11T15:49:37-04:00

https://www.youtube.com/watch?v=qAt6R-6rfUs In this Microsoft Access tutorial, you'll learn how to import data from a Microsoft Excel worksheet and create a table from it in an Microsoft Access database. To learn more about Microsoft Access, check out our Microsoft Access training courses!

How to Import Excel Data into Microsoft Access2016-07-11T15:49:37-04:00

Show Hidden Tables in Microsoft Access

2015-09-22T13:09:29-04:00

If you've ever inherited a database someone else created in Microsoft Access you may have run across the dreaded "hidden-table" scenario. This is when the original developer of the database has hidden (probably in an effort to keep anyone from disturbing them) the source tables that contain your data from the Navigation Pane in Microsoft Access. You'll realize this has happened, typically, because you'll go to create a query and you'll see a tables or tables as being available to include in your query, but strangely, you don't see those same tables listed in the Navigation Pane in Access. To fix [...]

Show Hidden Tables in Microsoft Access2015-09-22T13:09:29-04:00

Free Tutorial: Linking Tables in Microsoft Access Queries

2015-06-04T11:23:08-04:00

http://youtu.be/byPxcW1I05c In this free Microsoft Access tutorial, you'll see how to link tables in a Microsoft Access 2010 Query. You'll also learn the difference between inner joins, left outer joins and right outer joins. Learn more about Microsoft Access in our Microsoft Access Training courses.

Free Tutorial: Linking Tables in Microsoft Access Queries2015-06-04T11:23:08-04:00

How to Use VBA in Microsoft Access Tutorial

2013-06-21T21:57:45-04:00

In this Microsoft Access Tutorial, you'll see how to begin using VBA in Microsoft Access 2007. The basic concepts of objects, properties methods and events are explained and then you will see how to attach VBA code to the load event of a Microsoft Access Form and to the click event of a Command Button on a form. This tutorial is from our live, instructor-led online course: Microsoft Access 2007 VBA Training course. To learn more, visit our Microsoft Access Courses Page.

How to Use VBA in Microsoft Access Tutorial2013-06-21T21:57:45-04:00

Using ADO to Retrieve Data : Microsoft Access Tutorial

2013-06-21T21:59:30-04:00

In this Microsoft Access Tutorial you'll see how to connect to a database using ADO Connection, Command and Recordset objects in VBA code, how to populate text boxes from fields in the data retrieved, and how to create command buttons that use ADO Recordset methods to allow the user to move throughout the data. This content is from our live, instructor-led online MIcrosoft Access 2007 VBA Training course. To learn more, visit our Microsoft Access Courses Page.

Using ADO to Retrieve Data : Microsoft Access Tutorial2013-06-21T21:59:30-04:00

Microsoft Access Training

2013-06-21T22:05:22-04:00

SkillForge is proud to announce the most comprehensive Microsoft Access Training schedules available anywhere! Offering Introduction to Advanced courses in Visual Basic for Applications (VBA) - SkillForge offers training for students wanting to learn more about the Microsoft Access application no matter what level of experience they have. Students can choose from: Microsoft Access 2010 Training Microsoft Access 2007 Training Microsoft Access 2003 Training And topics range from the basics of creating tables and queries to writing VBA code. And as a special bonus - all students enrolling in a Microsoft Access Training course will receive free either a self-paced, interactive [...]

Microsoft Access Training2013-06-21T22:05:22-04:00

MS Access Resources

2013-06-21T22:31:42-04:00

Microsoft has recently published a very thorough set of MS Access 2010 resources to the TechNet site. Access has always been the part of the Office Suite that straddles the end-user/IT Professional fence. The resources on TechNet are definitely geared toward Access Developers rather than folks that might be using MS Access more casually. […]

MS Access Resources2013-06-21T22:31:42-04:00