Attached example project file to previous post, let me know if you have any questions (obviously you need to change a few column names and the path to the database etc etc but its more for you to learn from rather than just start using instead of what you have got already. Also there is no error handling at all in there so if you are going to try and use my version then you need to at least add a few Try, Catch, Finally blocks