In news

FED9F60-6640-4B3B-8891-(E-Mail Removed),
Ebitari <(E-Mail Removed)> wrote:
> Thanks for the information - it was very helpful.
>
> Now I want to launch the folder so that people can save files to it.
>
> I am using the following code:
>
> Application.FollowHyperlink "O:\EWGPP\NA-233 Task Order & Invoice
> Tracking\" & "Invoice" & " " & [Invoice Number], True
>
> This works and opens the folder, however, when I copy a file to the
> folder it does not show up until I go out of the folder and go back
> in. It does not seem to be opening the folder with the right
> settings because I can't see files immediately when I copy them to
> the opened folder. Is there a way to open a folder in a setting that
> automatically refreshes when a file is saved to it?
How are you copying the files? If you have opened the folder via
FollowHyperlink, the folder will naturally reflect the files that are in
it, and any files that are copied into it manually via the user
interface. If you're using code to copy files into the folder, I
suppose that you might need to refresh the folder, but my quick tests
with a folder on my C: drive didn't seem to have this problem. If the
folder is on a network, there my be a longer latency, though.
I have no idea how you would programmatically refresh a folder -- maybe
by locating its window via an API call and sending it a "refresh"
message of some sort. But if you'll describe what you're doing in more
detail, we may be able to come up with something.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)