Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir/Madam,

I am creating on windows form application using MS Access Database and create Setup the it install in another computer But Database can't work in another Computer. like as when i try to store data the it can't store data in database. how to fix this problem?
Posted

Did you install the database in the program folder of your application? Well, that won't work from Vista onwards, since a "normal" user must not write into C:\Program Files. Put it into C:\ProgramData\YourCompany\YourProduct folder, and adjust the connection string accordingly.
 
Share this answer
 
Bernhard is right, but there are better ways to specify where you store data, including databases: Where should I store my data?[^]
 
Share this answer
 
It is issue of user account restrictions
Open your MSAccess database it is may be in read-only mode set it to normal (allow read - write).
this probem is occur in windows7
Happy Coding!
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900