
COMBO BOX, STYLE : DROPDOWN LIST
Hi, Crotin:
It seems your combo1 is binding to a recordset. I am not
clear about this. But can you try to populate combo1 with
the field of the recordset?
like:
Combo1.AddItem rst1.Fields("f1")
The result is the same as yours. Probably can solve your
porblem.
Regards,
Andy
Quote:
>-----Original Message-----
>Thanks, but it doesn't work
>Combo1.AddItem() ' Compile error expected : =
>Combo1.AddItem("")
>Combo1.AddItem ""
>Combo1.AddItem -1
>dont't work
>Anything else??
>--
>....
message
>> Try Combo1.AddItem()
>> Janne
kirjoitti
>> viestiss?:VVJ78.21810
Quote:
>> > Hello, I have a hard time to implement a DROPDOWN
LIST!!
>> > Everytimes I am trying to add a new record, I keep on
getting 'Text'
>> > Property is read-only....
>> > I understand that if I am creating a new record, for
sure it can't find
>> the
>> > value of nothing in my COMBO BOX..... I also tried to
set
>Combo1.ListIndex
>> > = -1 just before .AddNew.....
>> > How can I tell to .AddNew that I will fill with
proper data??
>> > Private Sub cmd_ADD_Click()
>> > On Error GoTo AddErr
>> > With expeditions.Recordset
>> > .AddNew 'BOOM.,.,. 'Text' Property is read-only
>> > End With
>> > ' Combo1 = PREMIER_FOURNISSEUR
>> > Exit Sub
>> > AddErr:
>> > MsgBox Err.Description
>> > End Sub
>> > TIA.
>> > --
>> > ...
>.