Automatically add lettered directories to a combox box ACCESS 2003

I have a combox box, cboDirecotires, that needs to be populated at the On Open event of the form with the directory path and then the letters of the alphabet.  So, if my root directory is "K\MyDirectory\" I need the series of directories in the combox to be: K\MyDirectory\A\
                             K\MyDirectory\B\
                              K\MyDirectory\C\

for the alphabet.  I also need to add on directory of K\MyDirectory\0-9, but I figured that would be after the loop.  Any suggestions?

Sandra
Sandra SmithRetiredAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sandra SmithRetiredAuthor Commented:
Solved it

Private Sub PopulateDestinations()
'Populates the combox destination box with the destination folder names

Dim strDestination As String
Dim intASCII As Integer
Dim i As Integer

With Me.CboDestDir
    .RowSourceType = "Value List"
For i = 65 To 90
    intASCII = i
        strDestination = "K:\DatabaseDevelopment\ACH\DEV\Repository\" & (Chr(intASCII))
        .AddItem item:=strDestination
Next i
End With



End Sub
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sandra SmithRetiredAuthor Commented:
Solved myself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.