The last thing to occur when a form opens is the controls populate the form so
there is no form event that will allow you to add something to a listbox on the
form. To achieve what you want you need to add the item to the source of the
data for the listbox before you open the form. You can do this by creating a
recordset of the source and then use the Add/Update method of the recordset.
This can all be done in one procedure:
Create Recordset
Add/Update item to recordset
Open the Form
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com
"Vegard H. Villmones" <vv******@c2i.net> wrote in message
news:3q*******************@news4.e.nsc.no...
Hi
I want to add an item (string) to a list box that is already on the form in
the form_open procedure, but it wont work. Can't I just type
me.listname.addItem item:= "blabla" to add a single string to the list? Or
do I have to do something more with the list box?
--
Vegard