A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Determine folder access rights



 
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2009, 03:01 PM posted to microsoft.public.access
John J.
external usenet poster
 
Posts: 160
Default Determine folder access rights

Before starting a procedure I need to know if the user has at least READ
permissions on a certain folder. I found several ideas on Google but none of
them are suitable. The point is that I don't know beforehand if and which
files are in the folder. Also, when a user has only READ permissions, it is
no use to check if he can write to the folder.

I'm looking for something like Function canRead(strFolder as string) as
Boolean.

How could I achieve this or is it just not possible?

Thank you.
John


  #2  
Old March 3rd, 2009, 04:31 AM posted to microsoft.public.access
[email protected]
external usenet poster
 
Posts: 695
Default Determine folder access rights

I can usually do things like this via XP_CMDSHELL 'DIR C:\Windows'






+ On Mar 2, 7:01*am, "John J." wrote:
Before starting a procedure I need to know if the user has at least READ
permissions on a certain folder. I found several ideas on Google but none of
them are suitable. The point is that I don't know beforehand if and which
files are in the folder. Also, when a user has only READ permissions, it is
no use to check if he can write to the folder.

I'm looking for something like Function canRead(strFolder as string) as
Boolean.

How could I achieve this or is it just not possible?

Thank you.
John


  #3  
Old March 3rd, 2009, 05:40 AM posted to microsoft.public.access
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Determine folder access rights

John,

Might help to tell us a little bit more about your set-up and what you are
tyring to accomplish...

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

wrote in message
...
I can usually do things like this via XP_CMDSHELL 'DIR C:\Windows'






+ On Mar 2, 7:01 am, "John J." wrote:
Before starting a procedure I need to know if the user has at least READ
permissions on a certain folder. I found several ideas on Google but none
of
them are suitable. The point is that I don't know beforehand if and which
files are in the folder. Also, when a user has only READ permissions, it
is
no use to check if he can write to the folder.

I'm looking for something like Function canRead(strFolder as string) as
Boolean.

How could I achieve this or is it just not possible?

Thank you.
John



  #4  
Old March 3rd, 2009, 02:44 PM posted to microsoft.public.access
[email protected]
external usenet poster
 
Posts: 695
Default Determine folder access rights

I would ignore Gina, her answer is to use Jet, no matter how
applicable.

I'd just move to SQL Server and learn a really practical database.
Jet is obsolete and it has been for a decade.

-Aaron



On Mar 2, 9:40*pm, "Gina Whipp" wrote:
John,

Might help to tell us a little bit more about your set-up and what you are
tyring to accomplish...

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

wrote in message

...
I can usually do things like this via XP_CMDSHELL 'DIR C:\Windows'

*+ On Mar 2, 7:01 am, "John J." wrote:

Before starting a procedure I need to know if the user has at least READ
permissions on a certain folder. I found several ideas on Google but none
of
them are suitable. The point is that I don't know beforehand if and which
files are in the folder. Also, when a user has only READ permissions, it
is
no use to check if he can write to the folder.


I'm looking for something like Function canRead(strFolder as string) as
Boolean.


How could I achieve this or is it just not possible?


Thank you.
John


  #5  
Old March 3rd, 2009, 06:30 PM posted to microsoft.public.access
John J.
external usenet poster
 
Posts: 160
Default Determine folder access rights

I have an app that imports Excel files from different read-only folders (one
folder per department). Some users have read access to every folder, some
only for one. Users have their own app. In the app the user can select one
or more departments. Before the import starts I need to check if the user
has read rights to the specific departement(s) (folder(s)) he has selected.
If he doesn't have the rights, he should be notified and the import is
canceled.
Hope this makes things clearer.
John


"Gina Whipp" schreef in bericht
...
John,

Might help to tell us a little bit more about your set-up and what you are
tyring to accomplish...

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

wrote in message
...
I can usually do things like this via XP_CMDSHELL 'DIR C:\Windows'






+ On Mar 2, 7:01 am, "John J." wrote:
Before starting a procedure I need to know if the user has at least READ
permissions on a certain folder. I found several ideas on Google but none
of
them are suitable. The point is that I don't know beforehand if and which
files are in the folder. Also, when a user has only READ permissions, it
is
no use to check if he can write to the folder.

I'm looking for something like Function canRead(strFolder as string) as
Boolean.

How could I achieve this or is it just not possible?

Thank you.
John





  #6  
Old March 3rd, 2009, 07:54 PM posted to microsoft.public.access
Gina Whipp
external usenet poster
 
Posts: 3,500
Default Determine folder access rights

John,

I have not seen anything that checks the folders permissions from within
Access. I did find a module that will notify you of any chages to a
folder... http://www.mvps.org/access/modules/mdl0053.htm This MIGHT work or
point you in the right direction, if a change is not made that might be all
the notification you need to send a message.

You can check out the entire site http://www.mvps.org/access/ as there might
be something you could use other then the module I found. I looked but who
knows I might have issed it because there is alot of information there.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"John J." wrote in message
...
I have an app that imports Excel files from different read-only folders
(one folder per department). Some users have read access to every folder,
some only for one. Users have their own app. In the app the user can select
one or more departments. Before the import starts I need to check if the
user has read rights to the specific departement(s) (folder(s)) he has
selected. If he doesn't have the rights, he should be notified and the
import is canceled.
Hope this makes things clearer.
John


"Gina Whipp" schreef in bericht
...
John,

Might help to tell us a little bit more about your set-up and what you
are tyring to accomplish...

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

wrote in message
...
I can usually do things like this via XP_CMDSHELL 'DIR C:\Windows'






+ On Mar 2, 7:01 am, "John J." wrote:
Before starting a procedure I need to know if the user has at least READ
permissions on a certain folder. I found several ideas on Google but
none of
them are suitable. The point is that I don't know beforehand if and
which
files are in the folder. Also, when a user has only READ permissions, it
is
no use to check if he can write to the folder.

I'm looking for something like Function canRead(strFolder as string) as
Boolean.

How could I achieve this or is it just not possible?

Thank you.
John







  #7  
Old March 3rd, 2009, 08:41 PM posted to microsoft.public.access
John J.
external usenet poster
 
Posts: 160
Default Determine folder access rights

Thanks Gina. I'll check it out.
John

"Gina Whipp" schreef in bericht
...
John,

I have not seen anything that checks the folders permissions from within
Access. I did find a module that will notify you of any chages to a
folder... http://www.mvps.org/access/modules/mdl0053.htm This MIGHT work
or point you in the right direction, if a change is not made that might be
all the notification you need to send a message.

You can check out the entire site http://www.mvps.org/access/ as there
might be something you could use other then the module I found. I looked
but who knows I might have issed it because there is alot of information
there.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"John J." wrote in message
...
I have an app that imports Excel files from different read-only folders
(one folder per department). Some users have read access to every folder,
some only for one. Users have their own app. In the app the user can
select one or more departments. Before the import starts I need to check
if the user has read rights to the specific departement(s) (folder(s)) he
has selected. If he doesn't have the rights, he should be notified and the
import is canceled.
Hope this makes things clearer.
John


"Gina Whipp" schreef in bericht
...
John,

Might help to tell us a little bit more about your set-up and what you
are tyring to accomplish...

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors II

http://www.regina-whipp.com/index_files/TipList.htm

wrote in message
...
I can usually do things like this via XP_CMDSHELL 'DIR C:\Windows'






+ On Mar 2, 7:01 am, "John J." wrote:
Before starting a procedure I need to know if the user has at least
READ
permissions on a certain folder. I found several ideas on Google but
none of
them are suitable. The point is that I don't know beforehand if and
which
files are in the folder. Also, when a user has only READ permissions,
it is
no use to check if he can write to the folder.

I'm looking for something like Function canRead(strFolder as string) as
Boolean.

How could I achieve this or is it just not possible?

Thank you.
John








  #8  
Old March 3rd, 2009, 11:35 PM posted to microsoft.public.access
Bob Quintal
external usenet poster
 
Posts: 939
Default Determine folder access rights

" wrote in

m:

I would ignore Gina, her answer is to use Jet, no matter how
applicable.

I'd just move to SQL Server and learn a really practical database.
Jet is obsolete and it has been for a decade.

-Aaron


PLEASE MOVE TO SQL SERVER AND LEAVE THE ACCESS NEWSGROUPS.

Jet is nowhere near obsolete, only an aaron would say so..


wrote in message


--
Bob Quintal

PA is y I've altered my email address.
strThisMessage = replace(strThisMessage,"aa","mo")
  #9  
Old March 3rd, 2009, 11:39 PM posted to microsoft.public.access
Bob Quintal
external usenet poster
 
Posts: 939
Default Determine folder access rights

"John J." wrote in
:

I have an app that imports Excel files from different read-only
folders (one folder per department). Some users have read access
to every folder, some only for one. Users have their own app. In
the app the user can select one or more departments. Before the
import starts I need to check if the user has read rights to the
specific departement(s) (folder(s)) he has selected. If he doesn't
have the rights, he should be notified and the import is canceled.
Hope this makes things clearer.
John

If you try to open a spreadsheet but do not have read rights to the
folder, Access throws an error message,

All you need is to handle the error and exit the sub.

--
Bob Quintal

PA is y I've altered my email address.
  #10  
Old March 4th, 2009, 05:24 AM posted to microsoft.public.access
John J.
external usenet poster
 
Posts: 160
Default Determine folder access rights

I do check that. But it could be that the file actually doesn't exists, for
instance because the third party export to the folders went wrong. How would
I know the difference?
John

"Bob Quintal" schreef in bericht
...
"John J." wrote in
:

I have an app that imports Excel files from different read-only
folders (one folder per department). Some users have read access
to every folder, some only for one. Users have their own app. In
the app the user can select one or more departments. Before the
import starts I need to check if the user has read rights to the
specific departement(s) (folder(s)) he has selected. If he doesn't
have the rights, he should be notified and the import is canceled.
Hope this makes things clearer.
John

If you try to open a spreadsheet but do not have read rights to the
folder, Access throws an error message,

All you need is to handle the error and exit the sub.

--
Bob Quintal

PA is y I've altered my email address.



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.