PathName Declaration

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

My nutshell book isn't helping me out too much.
My "Field1" down below doesn't have the complete pathname
in it. I tried declaring PathName As "C:\PicLibrary", but
I don't know if I have the right syntax in the right
place.
 
Assuming that Field1 contains a file name and that you just need to supply
the path to that file:
Dim strPath As String
strPath = "C:\PicLibrary\"
Kill strPath & rstRecords!Field1


Note that you need a \ character between the path's end and the filename's
beginning.
 
Back
Top