Armin,
>Well, IMO you won't really run into trouble using SYS(2015) to generate unique filenames. Maybe a duplicate filename occurs once a year, maybe a litte more often, maybe never.
>
>Using a GUID as the filename should never create any duplicates.
>
>IMO it's just a matter how safe you want this to be. Using GUIDs is no problem if you have a function that generates the IDs and it's safe. That's why I would use this approach.
>
>Nevertheless, you're right in saying, that there should be an easy way to create unique filenames. But even VB doesn't have a function for this <g>.
Thanks a lot for the Function, I've just got to make the decision of now many clashes the other route is likely to make, but I guess that I will probable have to use your function just to be on the safe side!
Thanks for all you help
Caroline