>> if (aDir(thisForm.dirArray, 'g:\ssi605\data\hksreg\*.*') > 0)
>> thisForm.fileList.rowSource = 'thisForm.dirArray'
>
this.Requery()>> endif
< snip >
>Does the above bolded code help?
>Also, you might rather use RowSourceType of 7 (files). In this case, set the RowSource = "g:\ssi605\data\hksreg\*.*", after you have verified the directory exists.
The listBox populates fine. I don't want the behavior of rowSourceType=7. ThisForm.dirArray contains the values string values I want it to have, and it is the source for the listBox.
The problem: listBox.value is returning the numeric index of the array, not the string contained in the array.
Steve Gibson