By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,217 Members | 1,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,217 IT Pros & Developers. It's quick & easy.

prevent mdb file from opening directly

P: 1
Is there any way to prevent my.mdb file to be open directly, I want to access it through C# programming only. Such as by changing the extension or any other way please suggest me.
Apr 11 '09 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 489
Password protect the MDB file and have your C# program pass the password to the mdb when connecting to it. On the menu bar chose Tools-Security-Set Database Password.
Apr 11 '09 #2

Expert Mod 15k+
P: 31,707
I can add nothing to that perfect answer, except maybe, Welcome to Bytes!
Apr 13 '09 #3

Expert Mod 15k+
P: 31,707
Another solution (not better, but an alternative) is to define a form to open automatically when the database is opened. Code in the form would close the database as soon as it's opened.
Apr 14 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.