C
Casey
I have some code I am using to delete a user from a
group. I have that happen, then I run this code beneath
it to try to message that the deletion was successfully
done. In the coding below ws has been dimmed as workspace,
[name1] is the text box entry of the user name on a form
(one that has been deleted).
If ws.Users([Name1]).Groups.Count = False Then
MsgBox "User has successfully deleted from group."
Endif
I think that the False iteration is not effective,
because the [name1] text box entry is really deleted and
no longer exists as an object in the group it has been
deleted from. But what would I use as an annotation
instead of the False iteration to have the code note that
the [name1] does not exist in that group anymore? I have
tried null, 0 and others.
I would appreciate any opinions.
Thank you,
Casey
group. I have that happen, then I run this code beneath
it to try to message that the deletion was successfully
done. In the coding below ws has been dimmed as workspace,
[name1] is the text box entry of the user name on a form
(one that has been deleted).
If ws.Users([Name1]).Groups.Count = False Then
MsgBox "User has successfully deleted from group."
Endif
I think that the False iteration is not effective,
because the [name1] text box entry is really deleted and
no longer exists as an object in the group it has been
deleted from. But what would I use as an annotation
instead of the False iteration to have the code note that
the [name1] does not exist in that group anymore? I have
tried null, 0 and others.
I would appreciate any opinions.
Thank you,
Casey