Académique Documents
Professionnel Documents
Culture Documents
com
Page 1 of 4
3. In the Lookup Wizard select I want the lookup field to get the values from another table or query is selected, and then click Next.
NOTE If a lookup field is linked to a SharePoint list, any edits to the data must be made to the SharePoint list.
4. To select the source for the lookup field value, select from the Tables, Queries, or Both options. If the application was designed for the Web, but the source table is in the client mode, it must have a numeric primary key or Access displays an error message. If this happens, you must first create a numeric primary key for the table from the Design view and then return to the Web mode to create the lookup field. For more information on designing a table in the Web mode see, Build a database to share on the Web. 5. Select a table or query from the list, and then click Next. 6. From the Available Fields list, select the field that you want to add, and then click the > button to add it to the Selected Fields list. Ensure that the selected field or fields appear in the Selected Field list, repeat to add additional fields until you have added all the required fields, and then click Next.
http://office.microsoft.com/en-us/access-help/create-a-lookup-field-HA010341611.asp...
3/27/2014
Page 2 of 4
7. If you selected multiple fields, and you want to specify sort options for the lookup field, select the down arrow next to the first sorting field, and then click the name of the field by which you want to sort the values. 8. To change the sort order, click the Ascending button, and then click Next. 9. To adjust the width of the lookup field, use the mouse to drag the column to the width of your choice, and then click Next.
NOTE You can adjust the column width of the lookup field but if you reduce the width so that it is no longer visible, it will not be displayed. TIP Leave the Hide key column check box selected so that anyone using the lookup column sees only the values that you want them to see in the field and not the values in the primary key field.
10. Type a label name for the lookup field. 11. To create a multi-value lookup column, select the Allow Multiple Values check box.
NOTE Allow Multiple Values must be selected to enable storing multiple values. See the section, When to allow multiple values in a lookup field.
12. Click Finish, click the File tab, and then click Save.
TIP To verify or change properties for a lookup field, open the table in Design view and the properties are available on the Lookup tab, under Field Properties.
Click the cell in the Data Type column that corresponds to the column that you want to define as a lookup field, click the down arrow and select a datatype, and then click Lookup Wizard. In the Navigation Pane, right-click the table that you want to work with, and then click Design View.
NOTE If Access displays a message that it is unable to start the Lookup wizard, you should change the fields datatype.
In the Lookup Wizard, select I will type in the values that I want, and click Next. On the next page of the wizard, type the number of columns that you want in your lookup list.
NOTE You can adjust the column width of the lookup field but if you reduce the width so that it is no longer visible, it will not be displayed.
Type the values that you want displayed in the lookup list, and then click Next.
TIP You can edit a value list directly in the Row Source text box from the Lookup field properties.
6. If you specified more than one column in step 4, you must choose which column you will use to uniquely identify each value. In the Available Fields box, double-click the column that you want to use to uniquely identify each value, and then click Next.
NOTE This step does not appear if you did not specify more than one column in step 4.
7. On the next page of the wizard, type a label name for the lookup field.
http://office.microsoft.com/en-us/access-help/create-a-lookup-field-HA010341611.asp...
3/27/2014
Page 3 of 4
8. If you are creating a multi-value lookup column, select the Allow Multiple Values check box.
NOTE Allow Multiple Values must be selected to enable storing multiple values. See the section, When to allow multiple values in a lookup field.
Text BoxShows content that has been entered by a user. List BoxShows a list of values in an open window. Combo BoxShows selected values when closed and shows the available list of values when open.
NOTE Setting the Display Control property to either Text Box or Check Box disables lookups.
Choose whether to populate the lookup field with values from another table or query, or from a list of values that you specify. You can also choose to populate the list with the names of the fields in a table or query. Specify the table, query, or list of values that provides the values for the lookup field. When the Row Source Type property is set to Table/Query or Field List, this property should be set to the name of a table, query, or SQL statement that represents the query. When the Row Source Type property is set to Value List, this property should contain a list of values that are separated by semicolons. Specify the column in the Row Source property that supplies the value stored by the lookup field. This value can range from 1 to the number of columns in the Row Source property. Specify the number of columns in the row source that can be displayed in the lookup column. This property can be an integer value from 1 to 255. Specify whether to display column headings. The value can be No (default) or Yes. Enter the column width for each column. For example, if you don't want to display a column, such as an ID number, you can specify 0 for the width. Specify the number of rows that appear when you display the lookup column. Specify the width of the control that appears when you display the lookup column. Choose whether a user can enter a value that isn't found in the list. Specify whether the lookup field uses a multivalued field and allows multiple values to be selected. This setting can be No (default) or Yes. If you select Yes, the user will be able to select multiple values from the Row Source property for each record. For more information on using this option see; When to allow multiple values in a lookup field. Specify if the items in a value list lookup field can be edited. When set to Yes, right-clicking the lookup field displays the Edit List Items menu option. If the lookup field has more than one column, this property is ignored.
Bound Column Column Count Column Heads Column Widths List Rows List Width Limit To List Allow Multiple Values
http://office.microsoft.com/en-us/access-help/create-a-lookup-field-HA010341611.asp...
3/27/2014
Page 4 of 4
Specify an existing form that you can use to edit the list items in a lookup field. Show only values that match the current row source when Allow Multiples Values is set to Yes.
Site Directory
Contact Us
Submit Feedback
Legal
Trademarks
Accessibility
http://office.microsoft.com/en-us/access-help/create-a-lookup-field-HA010341611.asp...
3/27/2014