Forum Moderators: open
Thanks.
Something like this (off the top of my head, there may be some syntax anomalys):
FullPathname = "C:\dir1\dir2\file.ext"
Filename = Right(FullPathname, (Len(FullPathname) - InStrRev(FullPathname, "\")))
In your code, FullPathname would be whatever variable you have that holds the full file path. The Filename variable would be the actual file name that goes into your database. You could actually do it in one line of code if you substiture FullPathname with your full path.