Search results

  1. P

    Solved problem with Dir function

    That makes sense. Rookie move on my part.
  2. P

    Solved problem with Dir function

    I asked DBguy. He's not sure either. Maybe there's an admin person?
  3. P

    Solved problem with Dir function

    Just checked. It's on both
  4. P

    Solved problem with Dir function

    Mine looks like this
  5. P

    Solved problem with Dir function

    I'm sorry, but all I see is jump to new, Unwatch and a dropdown with edit thread and create poll
  6. P

    Solved problem with Dir function

    Thanks for the help
  7. P

    Solved problem with Dir function

    I'm not sure how
  8. P

    Solved problem with Dir function

    I am hanging my head in shame. I found the problem. I was creating a backup in one function that used Format(Date, "m-d-yy") to create the name of the file, but in another function to delete the oldest file, from 3 days ago, I used the DateAdd function but didn't format that. So, I was...
  9. P

    Solved problem with Dir function

    I tried Kill Trim(FilePath) to see if what I'd get. I got an error 53, file not found.
  10. P

    Solved problem with Dir function

    I'll look it over
  11. P

    Solved problem with Dir function

    I changed one line to this and it worked. FilePath = "C:\Users\smltu\Backup\*.mdb"
  12. P

    Solved problem with Dir function

    this is the code I tried. the first one the folder exist, but the second one the file doesn't exist. Dim FolderPath As String FolderPath = "C:\Users\smltu\Backup" If Right(FolderPath, 1) <> "\" Then FolderPath = FolderPath & "\" End If If Dir(FolderPath...
  13. P

    Solved problem with Dir function

    I tried some code that found a folder, but not a file in that folder
  14. P

    Solved problem with Dir function

    I did a bit of research. I think Environ started with Access 2007. I'm still using 2003.
  15. P

    Solved problem with Dir function

    This is exactly what I tested. sTxt = "12-1-2022.mdb" sFile = Environ("Userprofile") & "\Backup\" & sTxt Debug.Print sFile nothing happens. Thanks anyway.
  16. P

    Solved problem with Dir function

    I'll give it a go. Thanks
  17. P

    Solved problem with Dir function

    I've tried using all text within the Dir function like sFile = "C:\Users\file.txt" which works, but trying Dim sTxt As String sTxt = "file.txt" sFile = "C:\Users\" & sTxt doesn't work. The file is not found.
  18. P

    Hello

    I am brand new to this forum. Hello All!
Top Bottom