Delete a user from VBA code

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
 
A

Albert D. Kallal

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top