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:
- 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.
- 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.
- 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.
- 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: Access, database, field, lookup list
0 Comments:
Post a Comment
Please feel free to add your comment here. Thank you!
Subscribe to Post Comments [Atom]
<< Home