Filling a combo box list

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can I programmatically populate the selection value for a combo box?

I'm reading files in a directory and want to populate a combo box. I could
just build a table then read from it, but would like to do it in the program
if possible.

I have been trying:

MtStringOfFileNames = MtStringOfFileNames & MyFileName

MyCoboBox.rowsource = MtStringOfFileNames

But it doesn’t seem to work.
 
Is your combobox RowSourceType set to Value List? You also need to separate
terms with a semi-colon:

MtStringOfFileNames = MtStringOfFileNames & ";" & MyFileName
 
Back
Top