473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

auto write for read only users

Hi,

I have created a DB and I want to set up a few read-only users. The
problem is that I have a few "automated" insert/delete procedures.
E.g. when the user logs in his name is recorded on a table. I can
solve this problem by granitng insert access only for the specific
table. That would be ok for this problem, but not for the one
described below....

Moreover, when you load the main data Form it automatically creates a
number of records (specified by the date). When you unload it it
deletes all the empty records. This means that either read-only users
can't access the main data Form or theat they will have insert/delete
access...

Any ideas?

thank you in advance!

Laertes
Nov 12 '05 #1
5 1383
If you are using update or append queries to make your automated entries,
you can specify User's or Owner's permissions for the queries. This is one
of the query properties. If you are using stored queries, right click the
background where the tables are in the query design grid and choose
Properties.

--
Wayne Morgan
Microsoft Access MVP
"Laertes" <bi******@btopenworld.com> wrote in message
news:b2**************************@posting.google.c om...
Hi,

I have created a DB and I want to set up a few read-only users. The
problem is that I have a few "automated" insert/delete procedures.
E.g. when the user logs in his name is recorded on a table. I can
solve this problem by granitng insert access only for the specific
table. That would be ok for this problem, but not for the one
described below....

Moreover, when you load the main data Form it automatically creates a
number of records (specified by the date). When you unload it it
deletes all the empty records. This means that either read-only users
can't access the main data Form or theat they will have insert/delete
access...

Any ideas?

thank you in advance!

Laertes

Nov 12 '05 #2
I'm actually doing it by code... like this :

......

Set rst = dbs.OpenRecordset("SELECT [date], " _
& "Count([date]) As m FROM Selectron " _
& "GROUP BY [date] HAVING [date] = #" &
Format(a, "mm\/dd\/yyyy") & "#;")
if rst!m = 1 Then
DoCmd.GoToRecord , , acNewRec
Forms![Selectron]![Date].Value = a

......

I tried adding WITH OWNERACCESS OPTION at the end of the recordset,
but still it doesn't like it...

thnx!

Laertes
Nov 12 '05 #3
I don't follow where you tried to add the Owner Access option. Try adding it
here:

Set rst = dbs.OpenRecordset("SELECT [date], " _
& "Count([date]) As m FROM Selectron " _
& "GROUP BY [date] HAVING [date] = #" & _
Format(a, "mm\/dd\/yyyy") & "# WITH OWNERACCESS
OPTION;")

--
Wayne Morgan
MS Access MVP
"Laertes" <bi******@btopenworld.com> wrote in message
news:b2**************************@posting.google.c om...
I'm actually doing it by code... like this :

.....

Set rst = dbs.OpenRecordset("SELECT [date], " _
& "Count([date]) As m FROM Selectron " _
& "GROUP BY [date] HAVING [date] = #" &
Format(a, "mm\/dd\/yyyy") & "#;")
if rst!m = 1 Then
DoCmd.GoToRecord , , acNewRec
Forms![Selectron]![Date].Value = a

.....

I tried adding WITH OWNERACCESS OPTION at the end of the recordset,
but still it doesn't like it...

thnx!

Laertes

Nov 12 '05 #4
Wayne Morgan wrote:
I don't follow where you tried to add the Owner Access option. Try
adding it here:

Set rst = dbs.OpenRecordset("SELECT [date], " _
& "Count([date]) As m FROM Selectron " _
& "GROUP BY [date] HAVING [date] = #" & _
Format(a, "mm\/dd\/yyyy") & "# WITH
OWNERACCESS OPTION;")


That won't work, since the 'owner' of this sql statement is the user that's
running this code. An alternative is to create a saved RWOP query based on
Selectron and then write the select statement against that.

--
Joan Wild
Microsoft Access MVP
Nov 12 '05 #5
Thanks, Joan.

That makes sense.

--
Wayne Morgan
MS Access MVP
"Joan Wild" <jw***@nospamtyenet.com> wrote in message
news:10*************@corp.supernews.com...
That won't work, since the 'owner' of this sql statement is the user that's running this code. An alternative is to create a saved RWOP query based on Selectron and then write the select statement against that.

--
Joan Wild
Microsoft Access MVP

Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Don Grover | last post by:
How can I force a download of a csv file by user clicking on hyperlink. Don
11
by: csomberg | last post by:
SQL 2000 I thought I would throw this out there for some feedback from others. I'd like to know if you feel using MS auto-increment field is a good solution these days or should one grow their...
2
by: Krzysztof Bartosiewicz | last post by:
Hi! I have problems with editing my VBA code. It is connected with some kind of automatic-correction mechanism in Access which I cannot find. I turned off Automatic Syntax Check in Options menu...
6
by: Alpha | last post by:
I retrieve a table with only 2 columns. One is a auto-generated primary key column and the 2nd is a string. When I add a new row to the dataset to be updated back to the database. What should I...
2
by: x0054 | last post by:
Ok, this is a stupid problem, I admit. I have a scrip that adds records to a table. The records are for photos. So, after adding a record the scrip also uploads a picture from users computer and...
2
by: john | last post by:
Is it true that if I split my access database in backend and frontend and I implement custom auto increment for the ID fields, that my database is ready to be used in a multi-user environment? I...
1
by: Mrozik | last post by:
Hi! I have Web Application with forms authentication. Data and security model resides in Oracle database. I have 'login' page with MS 'Login' control. In my LoggingIn event for debug purposes I...
0
by: MikeB | last post by:
I currently use the below code to display images from my database. Part of what my site allows is for users to click on an image and I open up my handler.ashx to display the image. Is there a way...
0
chumlyumly
by: chumlyumly | last post by:
Hello scripters - OS: Mac OSX Language: PHP w/ MySQL database I've created an insert page where a user inputs his info, which then goes to four different tables in a MySQL database. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.