PC Review


Reply
Thread Tools Rate Thread

ADD USER statement

 
 
RayNDM83
Guest
Posts: n/a
 
      27th Aug 2009
Hi,
I am new with 2007 access and I read an article about "ADD USER statement"
as well as "ADD GROUP statement". Could someone help me out understand if
this is possible with 2007 access? And if it is, could you give me a
sample/steps of how to create a these two statements?
Thanks for clarifying this matter.
Ray
 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      28th Aug 2009
Those appear to be SQL-Server commands. In Access. Access 2007 does have
User-Level Security when used with the MDB format, but not with the new
accdb format. If using an MDB against SQL-Server, you can use those commands
which are part of the DDL (Data Definition Language) which can be used with
MDB front ends. Some DDL commands can also be used when working with a JET
backend (although not the 2 you mention).

BTW, ADD USER is used to add an existing user to an existing group. There is
no ADD GROUP statement. The correct syntax is CREATE GROUP. You can also:
CREATE USER.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"RayNDM83" <(E-Mail Removed)> wrote in message
newsEC63F39-CC5C-41FC-BE4A-(E-Mail Removed)...
> Hi,
> I am new with 2007 access and I read an article about "ADD USER statement"
> as well as "ADD GROUP statement". Could someone help me out understand if
> this is possible with 2007 access? And if it is, could you give me a
> sample/steps of how to create a these two statements?
> Thanks for clarifying this matter.
> Ray



 
Reply With Quote
 
RayNDM83
Guest
Posts: n/a
 
      28th Aug 2009
I though I could use it with accdb format. I am searching for a way to go
around and create a level of security using the new format. Thank you Arvin.

"Arvin Meyer [MVP]" wrote:
> Those appear to be SQL-Server commands. In Access. Access 2007 does have
> User-Level Security when used with the MDB format, but not with the new
> accdb format. If using an MDB against SQL-Server, you can use those commands
> which are part of the DDL (Data Definition Language) which can be used with
> MDB front ends. Some DDL commands can also be used when working with a JET
> backend (although not the 2 you mention).
>
> BTW, ADD USER is used to add an existing user to an existing group. There is
> no ADD GROUP statement. The correct syntax is CREATE GROUP. You can also:
> CREATE USER.
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
>
> "RayNDM83" <(E-Mail Removed)> wrote in message
> newsEC63F39-CC5C-41FC-BE4A-(E-Mail Removed)...
> > Hi,
> > I am new with 2007 access and I read an article about "ADD USER statement"
> > as well as "ADD GROUP statement". Could someone help me out understand if
> > this is possible with 2007 access? And if it is, could you give me a
> > sample/steps of how to create a these two statements?
> > Thanks for clarifying this matter.
> > Ray

>
>
>

 
Reply With Quote
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      30th Aug 2009
I'm building my own security using a similar model, but I don't even require
a login. Instead, I get the Windows username from the OS using an API:

http://www.mvps.org/access/api/api0008.htm

and comparing that to a value in a hidden table which also houses security
level so I can use field and row level security. The drawbacks are that it
can be circumvented by a savvy user, who can simply look at the data in the
tables on the server. I just log user activity on the server and can figure
out who's trying to access data directly. I have methods of dealing with
that situation that cannot be made public <g>
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"RayNDM83" <(E-Mail Removed)> wrote in message
news:7285A527-C4E5-4A9C-BCDA-(E-Mail Removed)...
>I though I could use it with accdb format. I am searching for a way to go
> around and create a level of security using the new format. Thank you
> Arvin.
>
> "Arvin Meyer [MVP]" wrote:
>> Those appear to be SQL-Server commands. In Access. Access 2007 does have
>> User-Level Security when used with the MDB format, but not with the new
>> accdb format. If using an MDB against SQL-Server, you can use those
>> commands
>> which are part of the DDL (Data Definition Language) which can be used
>> with
>> MDB front ends. Some DDL commands can also be used when working with a
>> JET
>> backend (although not the 2 you mention).
>>
>> BTW, ADD USER is used to add an existing user to an existing group. There
>> is
>> no ADD GROUP statement. The correct syntax is CREATE GROUP. You can also:
>> CREATE USER.
>> --
>> Arvin Meyer, MCP, MVP
>> http://www.datastrat.com
>> http://www.mvps.org/access
>> http://www.accessmvp.com
>>
>>
>> "RayNDM83" <(E-Mail Removed)> wrote in message
>> newsEC63F39-CC5C-41FC-BE4A-(E-Mail Removed)...
>> > Hi,
>> > I am new with 2007 access and I read an article about "ADD USER
>> > statement"
>> > as well as "ADD GROUP statement". Could someone help me out understand
>> > if
>> > this is possible with 2007 access? And if it is, could you give me a
>> > sample/steps of how to create a these two statements?
>> > Thanks for clarifying this matter.
>> > Ray

>>
>>
>>



 
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
ALTER USER STATEMENT =?Utf-8?B?Um9iVUNTRA==?= Microsoft Access Form Coding 5 19th May 2007 09:30 AM
User defined function in SQL statement robert d via AccessMonster.com Microsoft Access Queries 11 2nd Jan 2006 06:56 PM
If statement regarding current user Kathy Webster Microsoft Access Macros 2 16th Nov 2005 05:35 AM
If statement regarding current user Kathy Webster Microsoft Access Security 2 16th Nov 2005 05:35 AM
Why a statement often lost in my user controls? Quentin Huo Microsoft ASP .NET 1 6th May 2005 03:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 AM.