
Originally Posted by
Desstro
Ok so in a nut shell....
When I choose 1, the only data that shows up is the number one.
What I want to happen is when I choose 1, all the data in the combo box associated with 1 shows up in the combo box.
A combo box only displays one column of the row source. In your example, it will display the Package number. To automatically fill in the unbound controls "Property", "Area" & "Location", the code would look something like:
Code:
Sub Combo16_AfterUpdate()
Me.PropertyLoc = Empty
Me.Area = Empty
Me.Location = Empty
'Combo box columns are Zero based.
'First column is 0
'Second column is 1
Me.PropertyLoc = Me.Combo16.Column(1)
Me.Area = Me.Combo16.Column(2)
Me.Location = Me.Combo16.Column(3)
End Sub
Note that "Property" is a reserved word and shouldn't be used for object names. For a list of reserved words, see:
http://allenbrowne.com/AppIssueBadWord.html
HTH
----
Steve
--------------------------------
"Veni, Vidi, Velcro"
(I came; I saw; I stuck around.)