473,387 Members | 1,705 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,387 software developers and data experts.

How to retrieve User name and group of a secured db vis VBA?

Hi there,

I would like to retrieve of a secured database the Username and the group
that he / she belongs to, to apply access rights to some button click
events, which are accessing forms that the User Usergroup doesn't have
access to.

Any idea how I would go on about it??

kind regards

Norman f
Nov 13 '05 #1
4 3011
I would also like to be able to do this, though I would be content
just to know the user name. I have a secured database on a laptop
that will be passed around amongst users, but we need to know who made
the last change to a record. All users will have the same Windows (XP)
login, but will login individually to the db (MSAccess 2000).

It's so easy to do this in Filemaker, but it seems as if it must be
rather obscure in Access. I have done quite a bit of hunting around
and can't seem to find anything on point.

thanks much.

Norman Fritag wrote:
Hi there,

I would like to retrieve of a secured database the Username and the group
that he / she belongs to, to apply access rights to some button click
events, which are accessing forms that the User Usergroup doesn't have
access to.

Any idea how I would go on about it??

kind regards

Norman f


Nov 13 '05 #2
You can use the CurrentUser function to return the - current user.

I also recommend that you download the Security FAQ white paper. There
is much information in it regarding secured dbs.

http://support.microsoft.com/default...;en-us;q165009

- Jim

On Tue, 10 Aug 2004 16:14:52 -0400, Miss M <mm***@virginia.edu> wrote:
I would also like to be able to do this, though I would be content
just to know the user name. I have a secured database on a laptop
that will be passed around amongst users, but we need to know who made
the last change to a record. All users will have the same Windows (XP)
login, but will login individually to the db (MSAccess 2000).

It's so easy to do this in Filemaker, but it seems as if it must be
rather obscure in Access. I have done quite a bit of hunting around
and can't seem to find anything on point.

thanks much.

Norman Fritag wrote:
Hi there,

I would like to retrieve of a secured database the Username and the group
that he / she belongs to, to apply access rights to some button click
events, which are accessing forms that the User Usergroup doesn't have
access to.

Any idea how I would go on about it??

kind regards

Norman f


Nov 13 '05 #3
I gather CurrentUser is not a built-in function?
I didn't see it in the list. But thanks, I hope I can
figure it out from the white paper.
m

Jim Allensworth wrote:
You can use the CurrentUser function to return the - current user.

I also recommend that you download the Security FAQ white paper. There
is much information in it regarding secured dbs.

http://support.microsoft.com/default...;en-us;q165009

- Jim

On Tue, 10 Aug 2004 16:14:52 -0400, Miss M <mm***@virginia.edu> wrote:

I would also like to be able to do this, though I would be content
just to know the user name. I have a secured database on a laptop
that will be passed around amongst users, but we need to know who made
the last change to a record. All users will have the same Windows (XP)
login, but will login individually to the db (MSAccess 2000).

It's so easy to do this in Filemaker, but it seems as if it must be
rather obscure in Access. I have done quite a bit of hunting around
and can't seem to find anything on point.

thanks much.

Norman Fritag wrote:
Hi there,

I would like to retrieve of a secured database the Username and the group
that he / she belongs to, to apply access rights to some button click
events, which are accessing forms that the User Usergroup doesn't have
access to.

Any idea how I would go on about it??

kind regards

Norman f


Nov 13 '05 #4
It *is* a built-in function!

Try this; open the debug window {Ctrl} {g} and type ...

?CurrentUser
If the app is secured you will get the name of the user. If not then
you will get Admin.

?CurrentUser
Admin

Also, if you will select anywhere on the function name and type F1 you
will get help on the function.

- Jim

On Tue, 10 Aug 2004 21:29:49 -0400, Miss M <mm***@virginia.edu> wrote:
I gather CurrentUser is not a built-in function?
I didn't see it in the list. But thanks, I hope I can
figure it out from the white paper.
m

Jim Allensworth wrote:
You can use the CurrentUser function to return the - current user.

I also recommend that you download the Security FAQ white paper. There
is much information in it regarding secured dbs.

http://support.microsoft.com/default...;en-us;q165009

- Jim

On Tue, 10 Aug 2004 16:14:52 -0400, Miss M <mm***@virginia.edu> wrote:

I would also like to be able to do this, though I would be content
just to know the user name. I have a secured database on a laptop
that will be passed around amongst users, but we need to know who made
the last change to a record. All users will have the same Windows (XP)
login, but will login individually to the db (MSAccess 2000).

It's so easy to do this in Filemaker, but it seems as if it must be
rather obscure in Access. I have done quite a bit of hunting around
and can't seem to find anything on point.

thanks much.

Norman Fritag wrote:

Hi there,

I would like to retrieve of a secured database the Username and the group
that he / she belongs to, to apply access rights to some button click
events, which are accessing forms that the User Usergroup doesn't have
access to.

Any idea how I would go on about it??

kind regards

Norman f


Nov 13 '05 #5

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

Similar topics

1
by: Access | last post by:
Here is my function to change a users permission level in the database. This relates to an Access database secured using Access security. This function is called if the end user changes a staff...
3
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID =...
4
by: John Marble | last post by:
My system is near finished, it is something quite basic where the users interfer with the data via forms. I want to limit my groups in what they can SEE from the database. Like, I want my...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
17
by: TC | last post by:
In the past I always regarded user/group security as fairly tight. It is tricky to implement, but once implemented properly, it can't be cracked except through a dedicated effort. Recently,...
10
by: Jeff Williams | last post by:
How can I get a list of the Groups both Local and Domain groups a User belongs to.
4
by: mrouleau | last post by:
I am sorry if this is the wrong group to ask, if so please point me in the correct direction. My problem is I have an MDB file with user-level security on it (mdw). When i move it over to a...
31
by: zdenko | last post by:
I have a multi user database and users were created by user level security wizzard - as I mentioned in message before. Everything works fine for those users, but now I have another problem. I have...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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.