In order to use a Access database in your code, the file MUST be in a folder that users have READ and WRITE permissions to. Any folder under Program Files is READONLY to users. They will not have WRITE permissions to any files under Program Files.
You have to put the database file in a folder users have WRITE permissions to, like CommonAppData for all users on the machine.
You can get the path to this folder using
Environment.GetFolderPath()[
^] and specifying the
CommonApplicationData enum[
^].
Once you have the path, you can use
Path.Combine()[
^] to build the full path to the database file.