Article ID: 109827
Article Last Modified on 1/18/2007
Type Description ------------------- Fruit Apple Fruit Orange Fruit Grape
Me![Stock Number] = _ Me![Manufacturer].Column(1, Me![Manufacturer].ListIndex) Me![Description] = _ Me![Manufacturer].Column(2, Me![Manufacturer].ListIndex) NOTE: If you use this code, remove the expressions that are assigned to the ControlSource properties of the Stock Number control and Description control.
Table: Table1
---------------------------
Field Name: Manufacturer
Data Type: Text
Field Name: Stock Number
Data Type: Number
Field Size: Long Integer
Indexed: Yes
Field Name: Description
Date Type: Text
Table Properties: Table1
-------------------------
Primary Key: Stock Number
Manufacturer Stock Number Description
-----------------------------------------
IB Co 1 Mouse
IB Co 2 Printer
IB Co 3 Hard Drive
ComCo 4 PC
Form: Test1
Combo box: Manufacturer
ControlSource: <leave empty>
RowSourceType: Table/Query
RowSource: Table1
ColumnCount: 3
BoundColumn: 1
Width: 3
Text box: Stock Number
ControlSource: =[Manufacturer].Column(1)
Text box: Description
ControlSource: =[Manufacturer].Column(2)
Additional query words: duplicate bound column
Keywords: kbprb KB109827