PC Review


Reply
Thread Tools Rate Thread

Adding New User to WorkGroups

 
 
Casey
Guest
Posts: n/a
 
      5th Aug 2003
Hi,

I have an event procedure below that I use for the
onclick action of a button from a form.

On the form I have four text boxes, being Name1,
PIDt, PWord, and GrpJn. These boxes accept information
for a new user account and the group the user will be
joined into.

The boxes accept entries as Name1 for Name, PIDt for
Password ID, PWord for Password, and GrpJn for Group the
user will be joined to (besides the users group).

I had complete success with the procedure except for
the line which says "usr.Groups.Append usr.([GrpJn])".
That is where I am trying to join the user to the Group
specified by the GrpJn text box on my form. I would
appreciate any advice on how to have that part of my
procedure work.


Private Sub Command174_Click()
Dim ws As Workspace, usr As User
Dim grp As Group
Set ws = DBEngine(0)
Set usr = ws.CreateUser([Name1], [PIDt], [PWord])
ws.Users.Append usr
usr.Groups.Append usr.CreateGroup("Users")
usr.Groups.Append usr.Groups([GrpJn])
Exit_Command174_Click:
Exit Sub

Err_Command174_Click:
MsgBox Err.Description
Resume Exit_Command174_Click

End Sub


Thanks for any help.

Casey
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I log into different workgroups with different user accoun =?Utf-8?B?U3RldmVn?= Windows XP Networking 9 21st Oct 2006 11:41 PM
Can one user be joined to multiple workgroups at the same time? =?Utf-8?B?RG9ubmEgUmFl?= Microsoft Access Security 2 5th Aug 2006 01:32 AM
Trouble Adding Workgroups =?Utf-8?B?TVRlY2g4OA==?= Windows XP Networking 1 26th Oct 2005 09:36 PM
with XP same user profiles on NT and workgroups? Philippe JM Windows XP Networking 1 14th Feb 2004 08:41 AM
same user profiles on NT and workgroups? (WXP-Pro) PhilippeJM Windows XP Security 0 11th Feb 2004 02:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:06 AM.