Granting Permissions for Tables to an Existing Group with SQL command
Sub SetTblPermissions()
Dim conn As ADODB.Connection
On Error GoTo ErrorHandler
Set conn = CurrentProject.Connection
conn.Execute "GRANT SELECT, DELETE, INSERT, " _
& "UPDATE ON CONTAINER TABLES TO yourGroupName"
ExitHere:
If Not conn Is Nothing Then
If conn.State = adStateOpen Then conn.Close
End If
Set conn = Nothing
Exit Sub
ErrorHandler:
Debug.Print Err.Number & ":" & Err.Description
Resume ExitHere
End Sub
Related examples in the same category