Hi,
I'm tryinmg to populate a combobox I've created in a worksheet with the following code.
i = 0
Do While Not x.EOF
Sheet2.ComboBox3.Column(i, 0) = x!type_id
Sheet2.ComboBox3.Column(i, 1) = x!type_name
Sheet2.ComboBox3.Column(i, 2) = x!type_desc
i = i + 1
x.movenext
Loop
Pretty simple ?
However, the first time through I get:-
Runtime error 381
could not get the column property
Invalid property array index.
Same happens in debug if I type
?sheet2.ComboBox3.column(0) or (1)
I've defined the combobox with 3 columns.
What am I doing wrong ?
Regards,
Graham
I'm tryinmg to populate a combobox I've created in a worksheet with the following code.
i = 0
Do While Not x.EOF
Sheet2.ComboBox3.Column(i, 0) = x!type_id
Sheet2.ComboBox3.Column(i, 1) = x!type_name
Sheet2.ComboBox3.Column(i, 2) = x!type_desc
i = i + 1
x.movenext
Loop
Pretty simple ?
However, the first time through I get:-
Runtime error 381
could not get the column property
Invalid property array index.
Same happens in debug if I type
?sheet2.ComboBox3.column(0) or (1)
I've defined the combobox with 3 columns.
What am I doing wrong ?
Regards,
Graham