Hi!
First of all thankyou for your attention and patience
I have a userform in word 2003 with a query to one table of access 2003 with
3 columns
the example code is usseful only to display one column:
With rsNorthwind
Do Until .EOF
ComboBox1.AddItem (i)
ComboBox1.Column(0, i) = .Fields("companyname")
'ComboBox1.Column(1, i) = .Fields("location")
'ComboBox1.Column(2, i) = .Fields("year")
.MoveNext
i = i + 1
Loop
End With
what is wrong to display all 3 columns? with only the first line active:
ComboBox1.Column(0, i) = .Fields("companyname") is running ok but i active
the others two lines the code fails
I not understand where is the error to change from one field to a three
fields, perhaps can add any command to indicate the existence of three
fields in combobox? the property combobox.columncount with valor =3 and the
error is the same
Please help .
Sorry for my bad english
Doug Robbins - Word MVP - 04 Oct 2007 10:21 GMT
If you want more than one column in the combobox, use the method that I gave
you in response to your post of October 2.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Hi!
> First of all thankyou for your attention and patience
[quoted text clipped - 27 lines]
> Please help .
> Sorry for my bad english