I'm not very familiar yet with VBA but I see now what the problem is.
I changed it and is working now.
Thank you so much, I do appreciate your help.
DoCmd.RunSQL "INSERT INTO tblDocument (DogID, Filename, FilePath) " & _
"VALUES (" & DogID & ", """ & Filename & """,""" &...