Click here to Skip to main content
16,023,103 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi;

I am working with a access db 2002-2003 file I extract data from it as a string for comapare purpose. I want it to remain locked when it is not being used by the MFC application and vice versa to avoid any change in file context by the users.
Any suggestions are welcome.
Posted

1 solution

Try a database password. Of course, anyone can go to Access PassView v 1.12[^] and use that utility to "discover" the password you set.

The better way would be to encrypt the database when you're not using it and then decrypt it when you need to. See A simple MFC class to encrypt data with the Crypto API[^]

Personally, I don't know a way to keep an access file locked when not in use. That doesn't mean there isn't a way, but I would look into encryption or a simple password.
 
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