473,508 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Read Access & Read & Write Access

23 New Member
Hi, i have another question regarding MS Access database again):

Hope i could get some help and advise! It'll be greatly appreciated.

As i have a database of records. This databse is used by 2 different teams.

My team needs Read and Write Access while another team can only be granted Read Only Access.

Is there any way i can create a Read Only Access only and grant it to the other team?

Best wishes and many thanks for the help!
Cheers,
Nicole((:
Feb 25 '10 #1
1 2903
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
Adv. solution is to setup Security on the database, whcih can be troublesome to setup and to maintain.

The quick solution:

You could add some simple code in the form's open event.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Open(Cancel As Integer)
  2.     'Check for user in table of "approved users"
  3.     If Not IsNull(DLookup("KEY_User", "tbl_ApprovedUsers", "tx_UserName='" & Environ("UserName") & "'")) Then
  4.         Me.AllowAdditions = True
  5.         Me.AllowEdits = True
  6.         Me.AllowDeletions = True
  7.     Else
  8.         Me.AllowAdditions = False
  9.         Me.AllowEdits = False
  10.         Me.AllowDeletions = False
  11.     End If
  12. End Sub
All you need to do is to create a tbl_ApprovedUsers and add the windows username of each user you want to have write access. The Environ("UserName") will return the windows username for you.
Feb 25 '10 #2

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

Similar topics

14
1837
by: CJM | last post by:
I have a query which produces different results in the Access query builder and in an ASP page (via ADO) An example of the query is: ----------------------------------------------------------...
18
4856
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
0
3712
by: TheCoder | last post by:
I am making a D-base with web conectivity for my class project. I have everything working but the subit button sends the data to the correct fields but afterwards it wants to reproduce new blank...
1
4934
by: Sandeep | last post by:
Hi, I want to read & print a UTF-8 encoded characters stored in a file. I want to write a C program on Linux platform to achieve this. I am new to UTF-8. I will appreciate any sample...
6
2651
by: BBM | last post by:
I have an object that has a fairly complex construction sequence, so I have written a dedicated "factory" class that invokes the constructor of my object class (which does nothing but instantiate...
2
1577
by: Alex | last post by:
Seems that those functions can't read from or write to any address beyond 2GB (7FFFFFFF in hexa). when trying to access addresses beyond 2GB nothing happens - no action and no exception either. i...
6
4006
by: laramie.hartmann | last post by:
I have a script (see below) that accesses a XML file and displays the contents through a series of document.write calls. This all works fine in IE, but not at all in Firefox. I get no errors in the...
8
3853
by: paquer | last post by:
Database Users need to have Read/Write etc... permissions to the folder where the Database resides in order to create the lock file. I have read only users. I have set up the Shortcut that links...
2
7684
by: Bina | last post by:
hi, I want to read & write a html file which contain the japanese character. Now how i will do it?I can read & write english character . but when i read & write Japanese character from the html...
1
2779
by: Webstorm | last post by:
Hi, I hope someone can help me sort this out a bit, Im completely lost. Here is the page I am working on: http://www.knzbusinessbrokers.com/default.asp I have 3 search critera that I need to...
0
7127
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.