Articles | Photoshop blog | Photography blog | about me | e-mail

Helen Bradley - MS Office Tips, Tricks and Tutorials

I'm a lifestyle journalist and I've been writing about office productivity software for a long time. Here you'll find handy hints, tips, tricks, techniques and tutorials on using software as diverse as Excel, Word, PowerPoint, Outlook, Access and Publisher from Microsoft and other applications that I love. My publishing credits include PC Magazine, Windows XP mag, CNet, PC User mag, SmallbusinessComputing.com, Winplanet and Sydney Morning Herald.

Thursday, February 15, 2007

Creating Access Lookups

You're already used to using Lookup lists in many of the programs you use. You use a lookup or dropdown list to select from a series of entries that the programmer has provided for you to choose from. When you create a database in Access, you get to be the programmer and you can create your own lists.

So, whenever you have a list of options that can be used to fill a field in an Access database you can create a lookup field to manage it. Then, whenever data is entered into the table all the user has to do is to select an option from a dropdown list - this makes the dataentry process much faster and more accuate too. Here's how to create one:

  1. Start by creating a table that contains the details you want to allow your user to select from. You will need two fields in the table – one for a unique ID and another for the data. For example, for a list of states, include an ID field and a list of the states. Save your table.

  2. Open the main data table that you want to access the states information from. In the field for the State details, from the data type list choose Lookup Wizard. When the dialog opens choose 'I want the lookup column to look up the values in a table or query' and click Next. Select the table containing the data – in this case it would be the States table you create in step 1.

  3. Click Next and, from the Available fields list choose the field containing the names of the states as you want them to appear in the dropdown list and move it to the Selected Fields list. Click Next. In the sort area choose the field containing the data and set it to be sorted Ascending.

  4. Click Next and adjust the column width to the desired amount. Click Next, type a field name and click Finish and save the results. When you next enter data into the table you will find that the field with the lookup has a dropdown list that displays the data so you can choose an item from it.

Labels: , , ,

Add to Technorati Favorites

Friday, February 2, 2007

Sorting a Word list

While it looks like Word has no tool for sorting a list – only for sorting data in a table, this is not the case and the Table sort tool works just fine for sorting data in a list.

To sort a list, such as a list of names, where each name appears on a new line and the last name is separated from the first by a comma and a space, choose Table, Sort. From the Sort by list, choose Field 1 and then, from the Then by list choose Field 2 and click Ok. This sorts the data into order by last name and then by first name where there are two or more people with the same last name.

If the names appear with the first name then a space and then last name you'll have to tell Word to differentiate between the two names. To do this, select your list and choose Table, Sort, Options and click the Other option and press the Space bar and click Ok. From the Sort by list, choose Word 2 and then, from the Then by list choose Word 1 and click Ok. This sorts the data into order by last name and then by first name where there are two or more people with the same last name.

If you find that Word 2 doesn't appear as an option in the Sort by list, click Ok to exit the Table Sort dialog and select the option again.

Labels: , , , ,

Add to Technorati Favorites