Jeremy Campbell
asked on
Populate combobox in access form with filenames from folder.
Just trying to see if there is an easy way to have the list in a combobox be populated from all the filenames in a specific folder?
Thanks in advance for the help!
Thanks in advance for the help!
ASKER
thanks for the prompt response!
I'm hung up though;
I think the replace code is doing something to my path.
Here is my path;
Me.cboFiles.RowSource = fnGetFilenames("\\sfile0\e \cnc\HURCO Tool Lists\Tool List\")
Is it changing that "\\" to a single "\" and can that be changed somehow?
I'm hung up though;
I think the replace code is doing something to my path.
Here is my path;
Me.cboFiles.RowSource = fnGetFilenames("\\sfile0\e
Is it changing that "\\" to a single "\" and can that be changed somehow?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks fyed!
glad I could help.
Open in new window
Then, change the RowSourceType property of the combo box to "Value List" and use the forms Load event to populate the RowSource of the combo box, something like:me.comboFilenames.RowSourc