Click here to Skip to main content
15,900,572 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all.
i have an access database.i just want to make it read only to make sure that no one can edit it's tables?
i mean users(other users of my PC) can open and see tables and can edit all data!in this case there is no difference between admin and users.
i need a way to lock it or make it read only or ...
is there any way?
Posted
Updated 22-Feb-14 12:19pm
v2
Comments
pharap@hotmail.com 23-Feb-14 9:18am    
I'd like to note that Macros for Access are written in VB if you want to look into programming for Access. Although you don't need any programming knowledge to make an Access database read-only.
Farshad72 23-Feb-14 9:37am    
Ok!
thanks!

You actually do not need any code to do security in Access. It is built in. I would suggest reading through the help file and also reviewing this site, http://msdn.microsoft.com/en-us/library/office/aa139961(v=office.10).aspx[^]
 
Share this answer
 
Comments
Farshad72 22-Feb-14 19:58pm    
thanks.
codes are not written in C#.net .do you have any?
ZurdoDev 22-Feb-14 20:09pm    
You don't need code.
Garth J Lancaster 22-Feb-14 20:11pm    
whoops - hopefully I replied to Farshad72 and not you - sorry
Garth J Lancaster 22-Feb-14 20:10pm    
I don't think you read or understood what RyanDev was saying - you do not need code to do this - you make sure that the user accessing the database has the correct permissions to the tables - in this case, 'read-only' type permissions - its how the database access/roles are set up, nothing to do with c#

If you are saying you want code in c# to modify the access/roles, that's a different matter
Farshad72 22-Feb-14 20:22pm    
i understood that i can set a password Manually,but there was a "Set a Database Password Programmatically" title and the code was in vb i think.
and if you are concerned with keeping your data safe. Please add a password to the database and also add password in the connection string. So, that your software can access it.
 
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