A database seems an odd place to store that information, unless you need one value for multiple clients. If it's only for one user then it would make more sense to use My.Settings. So, do you need this counter to update for one user or multiple users? If it is multiple users and you stick with the database then it's simply a matter of executing an UPDATE statement and setting your field to its current value plus one. As for how to access databases in general, there is lots of information already out there on the web on ADO.NET and data access. You should read up and learn all the basic principles and not just a solution to this one specific problem.