add item in textboxes to list box

koketsomaseko

Registered User.
Local time
Today, 15:46
Joined
Jun 17, 2014
Messages
11
I have a form in Access VBA and five textboxes , but when i add the data in textboxes to Listbox it only add to single coulmn not all 5 please help?

here is my code


Listbox.addItem txtmajor.value
Listbox.addItem txttime.value
Listbox.addItem txtne.value
Listbox.addItem Comboesc.value
Listbox.addItem txtdesc.value
 
Code:
ListBox.AddItem txtmajor.Value & ";" & _
                txttime.Value & ";" & _
                txtne.Value & ";" & _
                txtComboesc.Value & ";" & _
                txtdesc.Value
 
Im getting errors Run time error '424'

Object required
 

Users who are viewing this thread

Back
Top Bottom