Re: vb6 multicol combo



"arpi shah" <arpishah123@xxxxxxxxx> wrote in message
news:emf$52ErHHA.4300@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have trying to load data into combobox by using

temp = rs!id
combo.additem rs!name,temp

i am not sure why does it gives me error that invalid procedure or call?

if i try putting brackets for example
combo.additem (rs!name,temp)
error pop up as = is expcted.

what am i doing wrong?

could anyone please help me.

The combobox that ships with VB has no support, at all, for multiple
columns.

What you seem to be trying to do is set the ItemData property

With combo
.AddItem rs!name
.ItemData(.NewIndex) = temp
End With

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm


.



Relevant Pages

  • vb6 multicol combo
    ... I have trying to load data into combobox by using ... temp = rs!id ... i am not sure why does it gives me error that invalid procedure or call? ...
    (microsoft.public.vb.general.discussion)
  • Re: vb6 multicol combo
    ... I have trying to load data into combobox by using ... i am not sure why does it gives me error that invalid procedure or call? ... What is the data type of your temp variable? ... The 2nd parameter of the ComboBox's AddItem method is an index specifying ...
    (microsoft.public.vb.general.discussion)
  • Re: combobox,rowsource,displayvalue,controlsource
    ... I just add a combobox controlsource with a table. ... LOCAL lnSelect ... CREATE CURSOR temp ) ... LOCAL lcValue ...
    (microsoft.public.fox.programmer.exchange)
  • RE: forms
    ... an error when I type the line 'Load data into ComboBox. ... > We are developing a word form and need a drop down box for more than 25 items. ... Prev by Date: ...
    (microsoft.public.word.docmanagement)
  • ComboBox on Form
    ... he is suppose to hit enter key to select that part ... I am able to create combobox and would like to have some help to load data ... Prev by Date: ...
    (microsoft.public.fox.vfp.forms)