Browsing Tables with the Navigation Pane

Microsoft Access No Comments »

The navigation pane shows the objects (Section 1.1) that are part of your database, and it lets you manipulate them. However, you don’t necessarily see all your database objects at all times. The navigation pane has several different viewing modes, so you can home in on exactly what interests you.

When you first create a database, the navigation pane shows only the tables in your database. That’s good enough for now after all, your database doesn’t contain anything but the tables you’ve created.

Figure 1-19. Unhappy with the space consumed by the navigation pane? Click the Open/Close but-ton in the top-right corner (top), and the navigation bar slides out of the way to give more room for the datasheet (bottom). Click the button again to expand it back into view. Read the rest of this entry »

Popularity: 1% [?]

Opening a Database Created in an Older Version of Access 2007

Microsoft Access No Comments »

You can use the Office button Open command to open an Access database that somebody created with a previous version of Access. (See the box “Sharing Databases with Older Versions of Access” in Section 1.2.3 for more about different Access file formats.)

Access handles old database files differently, depending on just how old they are. Here’s how it works:

  • If you open an Access 2002-2003 file, you don’t get any notification or warning. Access keeps the current format, and you’re free to make any changes you want.

  • If you open an Access 2000 file, you’re also in for smooth sailing. However, if you change the design of the database, the new parts you add may not be accessible in Access 2000.

  • If you open an older Access file (like one created for Access 97, 95, or 2.0), Access asks whether you want to convert the database or just open it (see Figure 1-17). Read the rest of this entry »

    Popularity: 1% [?]

Opening More Than One Database at Once in Access 2007

Microsoft Access No Comments »

Every time you use the Office button Open command, Access closes the current database, and then opens the one you chose. If you want to see more than one database at a time, you need to fire up more than one copy of Access at the same time. (Computer geeks refer to this action as starting more than one instance of a program.)

It’s almost embarrassingly easy. If you double-click another database file while Access is already open, then a second Access window appears in the taskbar for that database. You can also launch a second (or third, or fourth…) instance of Access from the Start menu, and then use Office button Open to load up a different database in each one.

FREQUENTLY ASKED QUESTION
What’s with the .laccdb File?

I see an extra file with the extension .laccdb. What gives?

So far, you’ve familiarized yourself with the .accdb file type. But if you’re in the habit of browsing around with Windows Explorer, you may notice another file that you didn’t create, with the cryptic extension .laccdb. Along with Bobblehead.accdb, you may spot the mysterious Bobblehead.laccdb.

Access creates a .laccdb file when you open a database file and removes it when you close the database, so you’ll see it only while you (or someone else) is browsing the database.

Access uses the laccddb to track who’s currently using the database. The / stands for lock, and it’s used to make sure that if more than one person’s using the database at once, people can’t make changes to the same record at the same time (which could cause all manner of headaches).

Access 2007: The Missing Manual covers more on how Access works with multiple users. All you need to know is that it’s safe to ignore the .laccddb file. You don’t need to include it in your backups.

Popularity: 2% [?]

Opening a Database in Access 2007

Microsoft Access No Comments »

Once you’ve created a database, it’s easy to open it later. You can use any of these approaches:

  • Double-click a database file. (You can browse to it using My Computer, Windows Explorer, or just plop in on your desktop.) Remember, Access databases have the file extension .accdb or .mdb.

  • Launch Access, and then look for your database in the Open Recent Database section on the right of the Getting Started page. (The same list’s available through the Office menu, as shown in Figure 1-15.)

  • Launch Access, choose Office button Open, and then browse for your Access database file. Read the rest of this entry »

    Popularity: 2% [?]

Saving a Database with a Different Name or Format in Access 2007

Microsoft Access No Comments »

If you want to save your database with a different name, in a different place, or using an older Access file format, you can use the trusty Save As command. Choose Office button Save As, and then use one of the options in Figure 1-14. Note that, once Access creates the new database file, that file’s the one it keeps using. In other words, when you create a table or edit some data, Access updates the new file. (If you want to go back to the old file, you either need to open it in Access, or use Save As again.)

Figure 1-14. Make sure you click the right-pointing arrow next to the Save As menu command to see this submenu of choices. (Just clicking Save As performs the default option, which saves a copy of the currently selected database object, not your entire database.) Then, choose one of the options under the “Save the database in another format” heading.

Popularity: 3% [?]

Making Backups in Access 2007

Microsoft Access No Comments »

The automatic save feature can pose a problem if you make a change mistakenly. If you’re fast enough, you can use the Undo feature to reverse your last change (Figure 1-12). However, the Undo feature reverses only your most recent edit, so it’s no help if you edit a series of records and then discover the problem. It also doesn’t help if you close your table and then reopen it.

Figure 1-12. The Undo command appears in the Quick Access toolbar at the top left of the Access window (circled), so it’s always available.

For these reasons, it’s a good idea to make frequent database backups. To make a backup, you simply need to copy your database file to another folder, or make a copy with another name (like Read the rest of this entry »

Popularity: 3% [?]

Saving and Opening Access Databases

Microsoft Access No Comments »

Unlike other programs, Access doesn’t require that you save your work. It automatically saves any changes you make.

When you create a new database (Section 1.2.1), Access saves your database file. When you add a table or another object to the database, Access saves the database again. And when you enter new data or edit existing data, Access saves the database almost instantaneously.

GEM IN THE ROUGH
Shrinking a Database

When you add information to a database, Access doesn’t always pack the data as compactly as possible. Instead, Access is more concerned with getting information in and out of the database as quickly as it can.

After you’ve been working with a database for a while, you might notice that its size bloats up like a week-old fish in the sun. If you want to trim your database back to size, you can use a feature called compacting. To do so, just choose Office button Manage Compact and Repair Database. The amount of space you reclaim varies widely, but it’s not uncommon to have a 10 MB database shrink down to a quarter of its size.

The only problem with the database compacting feature is that you need to remember to use it. If you want to keep your databases as small as possible at all times, you can switch on a setting that tells Access to compact the current database every time you close it. Here’s how:

  1. Open the database that you want to automatically compact.

  2. Choose Office button Access Options. Access opens the Access Options window where you can make a number of configuration changes.

  3. In the list on the left, choose Current Database.

  4. In the page on the right, turn on the Compact on Close” checkbox.

  5. Click OK to save your changes.

You can set the “Compact on Close” setting on as few or as many databases as you want. Just remember, it’s not switched on when you first create a new database.

This automatic save process takes place behind the scenes, and you probably won’t notice anything. But don’t be alarmed when you exit Access and it doesn’t prompt you to save changes, as all changes are saved the moment you make them.

Popularity: 3% [?]

Cut, copy, and paste in Access 2007

Microsoft Access No Comments »

Access, like virtually every Windows program, lets you cut and paste bits of information from one spot to another. This trick’s easy using just three shortcut keys: Ctrl+C to copy, Ctrl+X to cut (similar to copy, but the original content’s deleted), and Ctrl+V to paste. When you’re in Edit mode, you can use these keys to copy whatever you’ve selected. If you’re not in Edit mode, the copying or cutting operation grabs all the content in the field.

GEM IN THE ROUGH
Copying an Entire Record in One Step

Usually, you’ll use copy and paste with little bits and pieces of data. However, Access has a little-known ability that lets you copy an entire record. To pull it off, follow these steps:

  1. Click the margin to the left of the record you want to copy.

  2. This selects the record. (If you want to copy more than one adjacent record, hold down Shift, and then drag your mouse up or down until they’re all selected.)

  3. Right-click the selection, and then choose Copy.

    This copies the content to the clipboard.

  4. Scroll to the bottom of the table until you see the new-row marker (the asterisk).

  5. Right-click the margin just to the left of the new-row marker, and then choose Paste.

Prestoan exact duplicate. (Truth be told, one piece of data doesn’t match exactly. Access updates the ID column for your pasted record, giving it a new number. That’s because every record needs to have a unique ID. You’ll learn why in Section 2.4.1.)

Popularity: 5% [?]

Shortcut keys in Edit tables, Access 2007

Microsoft Access No Comments »

Power users know the fastest way to get work done is to use tricky keyboard combination like Ctrl+Alt+Shift+*. Although you can’t always easily remember these combination, a couple of tables can help you out. Table 1-1 lists some useful keys that can help you whiz around the datasheet.

Table 1-1. Keys for Moving Around the Datasheet

Key

Result

Tab (or Enter)

Moves the cursor one field to the right, or down when you reach the edge of the table. This key also turns off Edit mode if it’s currently switched on.

Shift+Tab

Moves the cursor one field to the left, or up when you reach the edge of the table. This key also turns off Edit mode.

Moves the cursor one field to the right (in Normal mode), or down when you reach the edge of the table. In Edit mode, this key moves the cursor through the text in the current field.

Moves the cursor one field to the left (in Normal mode), or up when you reach the edge of the table. In Edit mode, this key moves the cursor through the text in the current field.

Moves the cursor up one row (unless you’re already at the top of the table). This key also turns off Edit mode.

Moves the cursor down one row (or it moves you to the “new row” position if you’re at the bottom of the table). This key also turns off Edit mode.

Home

Moves the cursor to the first field in the current row. This key brings you to beginning of the current field if you’re in Edit mode.

End

Moves the cursor to the last field in the current row. This key brings you to end of the current field if you’re in Edit mode.

Page Down

Moves the cursor down one screenful (assuming you have a large table of information that doesn’t all fit in the Access window at once). This key also turns off Edit mode.

Page Up

Moves the cursor up one screenful. This key also turns off Edit mode.

Ctrl+Home

Moves the cursor to the first field in the first row. This key doesn’t do anything if you’re in Edit mode.

Ctrl+End

Moves the cursor to the last field in the last row. This key doesn’t do anything if you’re in Edit mode.

Read the rest of this entry »

Popularity: 4% [?]

Edit mode in Access 2007

Microsoft Access No Comments »

You’ll probably spend a lot of time working with the datasheet. So settle in. To make your life easier, it helps to understand a few details.

As you already know, you can use the arrow keys to move from field to field or row to row. However, you might have a bit of trouble editing a value. When you start typing, Access erases any existing content. To change this behavior, you need to switch into Edit mode by pressing the F2 key; in Edit mode, your typing doesn’t delete the stuff that’s already in that field. Instead, you get to change or add to it. To switch out of Edit mode, you press F2 again. Figure 1-10 shows a closeup look at the difference.


Tip: You can also switch in and out of Edit mode by double-clicking a cell. Read the rest of this entry »

Popularity: 4% [?]


WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Add to Technorati Favorites Log in