Hi
I'm struggling with this one. I want the data from some fields entered on my form appear in a listbox. The following code isn't working at the moment. What's wrong?!?!
---------------------------
Private Sub Form_Load()
Dim lst1 As ListBox
Dim strMsg As String
Dim entity1 As String
Dim entity2 As String
Dim entity3 As String
Dim entity4 As String
Dim entity5 As String
entity1 = clients!entity1
entity2 = clients!entity2
entity3 = clients!entity3
entity4 = clients!entity4
entity5 = clients!entity5
Set lst1 = Me!lst1
' Fill List1.
With lst1
.RowSourceType = "Value List"
.RowSource = entity1
.RowSource = entity2
.RowSource = entity3
.RowSource = entity4
.RowSource = entity5
.ColumnCount = 1
End With
End Sub
---------------------
Thanks a lot...
I'm struggling with this one. I want the data from some fields entered on my form appear in a listbox. The following code isn't working at the moment. What's wrong?!?!

---------------------------
Private Sub Form_Load()
Dim lst1 As ListBox
Dim strMsg As String
Dim entity1 As String
Dim entity2 As String
Dim entity3 As String
Dim entity4 As String
Dim entity5 As String
entity1 = clients!entity1
entity2 = clients!entity2
entity3 = clients!entity3
entity4 = clients!entity4
entity5 = clients!entity5
Set lst1 = Me!lst1
' Fill List1.
With lst1
.RowSourceType = "Value List"
.RowSource = entity1
.RowSource = entity2
.RowSource = entity3
.RowSource = entity4
.RowSource = entity5
.ColumnCount = 1
End With
End Sub
---------------------
Thanks a lot...