PC Review


Reply
Thread Tools Rate Thread

DAO Recordset does not have access rights

 
 
=?Utf-8?B?VGVycnk=?=
Guest
Posts: n/a
 
      9th Jun 2005
In Access 2002 the line
Set Sn = CurrentDb.OpenRecordset(sqlText, dbOpenSnapshot)
only works when the admin user has the required access rights. If the Admin
user has no rights to the database this line errors. If the Admin user has
Open rights the error message says no rights to the table involved.

1. Am I correct in thinking OpenRecordset uses a separate 'connection' (I
say 'connection' as the table concerned is not a linked table) to the
database and that it does this as Admin user?

2. How do I open a recordset with the same priveliges as the current user?
(The database does not have linked tables so no Connect sting is relevant.

Or am I misunderstanding something?

 
Reply With Quote
 
 
 
 
Lance McGonigal
Guest
Posts: n/a
 
      9th Jun 2005
Well, this is why I'm not a fan of Access security. Have you thought about
removing security and running this app. My rule of thumb is Access
front-end/back-end if no security is needed and less than 25 users.
Otherwise, Access Front-end/SQL Server back-end.

Sorry

"Terry" <(E-Mail Removed)> wrote in message
news:9869805B-0A60-41DD-9599-(E-Mail Removed)...
> In Access 2002 the line
> Set Sn = CurrentDb.OpenRecordset(sqlText, dbOpenSnapshot)
> only works when the admin user has the required access rights. If the

Admin
> user has no rights to the database this line errors. If the Admin user has
> Open rights the error message says no rights to the table involved.
>
> 1. Am I correct in thinking OpenRecordset uses a separate 'connection' (I
> say 'connection' as the table concerned is not a linked table) to the
> database and that it does this as Admin user?
>
> 2. How do I open a recordset with the same priveliges as the current user?
> (The database does not have linked tables so no Connect sting is relevant.
>
> Or am I misunderstanding something?
>



 
Reply With Quote
 
=?Utf-8?B?VGVycnk=?=
Guest
Posts: n/a
 
      10th Jun 2005
Unfortunately this is not an option as it is the user's requirement.

"Lance McGonigal" wrote:

> Well, this is why I'm not a fan of Access security. Have you thought about
> removing security and running this app. My rule of thumb is Access
> front-end/back-end if no security is needed and less than 25 users.
> Otherwise, Access Front-end/SQL Server back-end.
>
> Sorry
>
> "Terry" <(E-Mail Removed)> wrote in message
> news:9869805B-0A60-41DD-9599-(E-Mail Removed)...
> > In Access 2002 the line
> > Set Sn = CurrentDb.OpenRecordset(sqlText, dbOpenSnapshot)
> > only works when the admin user has the required access rights. If the

> Admin
> > user has no rights to the database this line errors. If the Admin user has
> > Open rights the error message says no rights to the table involved.
> >
> > 1. Am I correct in thinking OpenRecordset uses a separate 'connection' (I
> > say 'connection' as the table concerned is not a linked table) to the
> > database and that it does this as Admin user?
> >
> > 2. How do I open a recordset with the same priveliges as the current user?
> > (The database does not have linked tables so no Connect sting is relevant.
> >
> > Or am I misunderstanding something?
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RecordSet Type mismatch using Access 2007 VB script in Access 2002 Marian M. Microsoft Access VBA Modules 2 27th Jan 2008 01:50 AM
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay Microsoft ASP .NET 2 20th Aug 2007 08:38 PM
preventing non-familiy members(invities) to locally access my folder (NTFS access rights) download66@bluemail.ch Microsoft Windows 2000 Security 3 23rd Mar 2007 02:38 PM
Printer rights for users with Limited access rights =?Utf-8?B?Q2hvaXJib3k=?= Windows XP New Users 2 7th Oct 2005 05:45 PM
Access 2002: bind adodb recordset to listbox recordset property Craig Buchanan Microsoft Access Form Coding 2 1st May 2005 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 PM.