I tried running the program with and without the slash like d:bob.db and d:\bob.db. Both had the same error, and in both cases the "if fileexists" returned that it does exist. FWIW, I went into dbbrowser for sqlite andtried to open the database without the slash and it said file not found.