Delete a user from VBA code

  • Thread starter Thread starter bill grondin
  • Start date Start date
B

bill grondin

I have a secured application using an mdw file. There is
a user group which has one user in it for the on-site
administration of user accounts. I have VBA code to add a
new user and also to reset a user's password.
I am unable to find any documentation on how to DELETE a
user from VBA code. Anyone have any suggestions? Thank
you! Bill
 
I use:

Public Sub RemoveRidesUser(strUser As String)

' remove a rides user

If IsUser(strUser) = False Then
Exit Sub
End If

DBEngine.Workspaces(0).Users.Delete strUser
DBEngine.Workspaces(0).Users.Refresh

End Sub
 
Back
Top