According to the terms of usage of TheAccessWeb, one should rather post a link than copy/paste code. If that had been done with the original reply, then you would probably have found the answer by looking at the link to the original code (http://www.mvps.org/access/api/api0002.htm), and find the link to Stephen Lebans modifications of that code.
If I recall correct, it should work OK, unless you have some "ancient" OS (I'm thinking Win95/98?), where it will probably give "c:\" or "My Computer" regardless of chosen folder.