Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Security / April 2007

Tip: Looking for answers? Try searching our database.

permissions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Everaldo Ricardo - 30 Jan 2007 19:56 GMT
how to print group/user permissions  ? using User level security(mdw).
Joan Wild - 30 Jan 2007 20:56 GMT
This was answered in another newsgroup.
See http://home.bendbroadband.com/conradsystems/accessjunkie/csdtools.html

(there is no need to post your question in multiple groups)

Signature

Joan Wild
Microsoft Access MVP

> how to print group/user permissions  ? using User level security(mdw).
Everaldo Ricardo - 01 Feb 2007 11:45 GMT
thank you Joan

(I was desperate)

> This was answered in another newsgroup.
> See http://home.bendbroadband.com/conradsystems/accessjunkie/csdtools.html
>
> (there is no need to post your question in multiple groups)
>
>> how to print group/user permissions  ? using User level security(mdw).
Jan Kowalski - 30 Apr 2007 09:17 GMT
> how to print group/user permissions  ? using User level security(mdw).
Scott McDaniel - 30 Apr 2007 22:47 GMT
>> how to print group/user permissions  ? using User level security(mdw).
This function will return a String with all Groups and the users assigned to those Groups:

Function PrintUsersGroups(Optional PrintoutPath As String) As String
Dim usr As DAO.User
Dim grp As DAO.Group
Dim ws As DAO.Workspace
Dim strOutput As String
Dim lngFile    As Long

Set ws = DBEngine(0)

For Each grp In ws.Groups
 strOutput = strOutput & grp.Name
 strOutput = strOutput & vbCrLf & "-------------"
   For Each usr In grp.Users
     strOutput = strOutput & vbCrLf & usr.Name
   Next usr
 strOutput = strOutput & vbCrLf & vbCrLf
Next grp

PrintUsersGroups = strOutput

If Len(PrintOut)>0  Then
 lngFile = FreeFile
 Open Printout For Output As #lngFile

 Write #lngFile, strOutput
 Close #lngFile
End If

Set ws = Nothing

End Function

You could then use this in a MsgBox like this:

Msgbox PrintUsersGroups

or, if you wanted to print to a Text file:

PrintUserGroups(CurrentProject.Path & "\Users_And_Groups.txt")

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
Jan Kowalski - 30 Apr 2007 14:50 GMT
U¿ytkownik "Jan Kowalski" <osoba@microsoft.com> napisa³ w wiadomo¶ci
news:...

> U¿ytkownik "Everaldo Ricardo" <etc_ricardo@hotmail.com> napisa³ w
> wiadomo¶ci news:OqEMqeKRHHA.3412@TK2MSFTNGP02.phx.gbl...
>> how to print group/user permissions  ? using User level security(mdw).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.