I've written a program in Visual Studio which uses an Access database. When I run the program thru Visual Studio it works as intended, but when I publish to program it doesn't run because the database file is not found. Does anyone know how to fix this?
Right-click on your project than select properties -> publish -> application.
change the 'Publish Status' property of your database file from 'Include (Auto)' to 'Data File', make the file Required, and Include.