Normally, this kind of problem is not in the code: it's that the access file is being overwritten when you rebuild your project. You don't show where you connect to your DB, so it's difficult to tell, but the chances are you have your DB in the "bin" folder with your application.
So check if your Access database in included in your project files, and if so, remove it.
Move the DB to a more sensible folder (the application binary folder is not a good place: it's generally read only in release versions and only works in development).
See here:
Where should I store my data?[
^] - the code is C#, but it's pretty simple and you should get the idea straight away.