About AutoCorrect

Have you noticed that when you enter data, Access sometimes changes it? That's AutoCorrectan Office featureat work. If you use Word or Excel, you've probably noticed that they also occasionally change the data you enter.

AutoCorrect tries to correct your mistakes before you store those mistakes permanently. For instance, if you enter teh , AutoCorrect changes it to the . That might or might not be what you want, but most of the time, AutoCorrect does a good job of catching your typos.

Let's take a closer look at the AutoCorrect feature to see just how hard it works for you. To do so, select AutoCorrect Options from the Tools menu to display the dialog box shown in Figure 17.6.

Figure 17.6. Open the AutoCorrect dialog box.

graphics/17fig06.jpg

By default, all the options are set:

  • If you enter two uppercase letters at the beginning of a word, AutoCorrect changes the second letter to lowercase.

  • AutoCorrect always capitalizes the first letter in a sentence .

  • AutoCorrect recognizes the names of the week and capitalizes each if you don't.

  • If the first letter of a word is lowercase and the rest are uppercase, AutoCorrect automatically reverses the case and capitalizes only the first letter.

  • AutoCorrect can automatically replace text as you type. This is where the teh/the example we used earlier comes from. Below the Replace Text As You Type option is a list of strings AutoCorrect watches for (in the Replace column). When AutoCorrect encounters one of the strings in the Replace column, it changes it to the corresponding string in the With column.

If you don't want AutoCorrect to change something, just uncheck the appropriate option.

Altering AutoCorrect to Fit Your Circumstances

The AutoCorrect feature can be annoying if it makes a change you don't like and you end up correcting AutoCorrect. Fortunately, most of the time, you can make AutoCorrect behave the way you want it to. Let's take a look at a couple of examples.

The first option in the Replace Text As You Type option is (c) and . Every time you type (c), AutoCorrect changes it to . If you enter (c) frequently, this can quickly become annoying. The simple solution to this problem is to delete that entry. To do so, display the AutoCorrect Options dialog box, select the (c)/ entry under the Replace Text As You Type option, as shown in Figure 17.7, and click the Delete button at the bottom-right corner of the dialog box.

Figure 17.7. Find the appropriate AutoCorrect item.

graphics/17fig07.jpg

You can also add Replace Text As You Type entries of your own. Perhaps your best friend's last name is Gray and you often type it as Grey. AutoCorrect will fix the error for you. Display the AutoCorrect Options dialog box and enter Grey in the Replace box, enter Gray in the With box, and then click Add . The next time you type Grey , AutoCorrect will change it to Gray . The interesting thing about this particular entry is that AutoCorrect is case sensitive. So, if you enter grey instead of Grey , AutoCorrect won't change the spelling to gray . It only works if you capitalize the g , as in Grey .

When AutoCorrect goes to work and corrects a misspelled entry, it also displays a new smart tag. Specifically, it's called the AutoCorrect Options smart tag. From the list, you can choose one of the following:

  • Change the corrected item to its original state

  • Stop correcting the original entry altogether

  • Display the AutoCorrect dialog box

You can see this new feature at work by deliberately entering a known AutoCorrect item into a table. Try that now:

  1. Click the Tables shortcut in the Database window and double-click Catalogs to open that table.

  2. In the new record (the blank line at the bottom of the table), enter Teh , and then press Enter . When you do, Access displays a smart tag icon close to the offending text.

  3. Click the icon to open the list of options, shown in Figure 17.8.

    Figure 17.8. View the AutoCorrect options.

    graphics/17fig08.gif

  4. Select Change Back to "teh" to undo the AutoCorrect change. If you select Stop Automatically Correcting "teh" AutoCorrect will ignore teh entries while you're working with that particular table. Choosing that item permanently deletes the item from the AutoCorrect list. You must re-enter the item manually if you want AutoCorrect to react to it again.

Tip

graphics/tman.gif

A quick way to undo an AutoCorrect correction without permanently changing an option is to press Ctrl+Z after AutoCorrect makes a change. Doing so returns the text you entered.


Adding to AutoCorrect While Correcting Your Spelling

AutoCorrect is another shared Office feature you probably use often. (I know I do!) If you encounter a typo while performing a SpellCheck, you can add it to the AutoCorrect list. That way, SpellCheck won't complain about the word not being in the dictionary the next time you use it. Instead, AutoCorrect will simply correct the typo when you enter it. This capability is especially helpful when entering words that aren't common, such as Latin names for flowers.

Note

graphics/nman.gif

AutoCorrect is a shared Office feature, meaning any changes you make to the settings in Access also affect Excel and Word.


To add a word to the dictionary, open the Plants form and select Spelling from the Tools menu (or press F7 ), with Yarrow as the current record. Right away, the feature finds an entry that's not in the dictionaryAchillea, as shown in Figure 17.9.

Figure 17.9. Part of the plant's Latin name isn't found in the AutoCorrect dictionary.

graphics/17fig09.jpg

If you don't want SpellCheck to stop on this word again, click the AutoCorrect button at the bottom-right of the dialog box. When you're done, click Close.

Now, return to the first record by clicking the First button on the form's navigation bar. Then press F7 to rerun the SpellCheck. This time, it ignores Yarrow's Latin name.

Note

graphics/nman.gif

You can turn off the AutoCorrect feature for individual form controls. Open the form in design view and double-click the control in question. Then, set the control's AllowAutoCorrect property to No . (To learn more about setting properties in a form, see Chapter 13, "Customizing Forms.")




Absolute Beginner's Guide to Microsoft Office Access 2003
Absolute Beginners Guide to Microsoft Office Access 2003
ISBN: 0789729407
EAN: 2147483647
Year: 2002
Pages: 124

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net