I am trying to loop through a file and add the contents of one field from each record to a combo box. I am currently using the following code: -

Do While Not unitselarray(Index).unit_name = ""
Text8.Text = unitselarray(Index).unit_name
Combo2.AddItem Text8.Text
Loop

but this keeps giving me error messages. Could someone please help?

Thanks,
Paul