[Edited by MartinLiss] I already answered your question. I said use |DataDirectory| for the folder and to not do it in code because it's part of your connection string. I even provided an example. How is that not clear? Let me spell it out for you:As you seem to be having a little trouble the first time around, let me also say again that that will be resolved to the appropriate folder at run time.Code:con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\TimeKeepingDB.accdb;Jet OLEDB:Database Password=*************"
Thanks for providing your database password too, by the way.




Reply With Quote