NetUserAdd gives NERR_GroupExists
Why would that be?
I took some code from an Access form and ported to VB to put into an MTS DLL
so I can access it from a website. It works fine in Access but in VB
NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
Anyone with a clue as to why I'm getting this?
Later...
Jerry
# 1 Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --
>Why would that be?
>
>I took some code from an Access form and ported to VB to put into an MTS DLL
>so I can access it from a website. It works fine in Access but in VB
>NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>
>Anyone with a clue as to why I'm getting this?
From what I understand, that usually means the account name is not unique. Another
possibility is that the primary group ID field may be bogus? Wish I had more to
offer. Think either could be the case?
Later... Karl
# 2 Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --
>Why would that be?
>
>I took some code from an Access form and ported to VB to put into an MTS DLL
>so I can access it from a website. It works fine in Access but in VB
>NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>
>Anyone with a clue as to why I'm getting this?
From what I understand, that usually means the account name is not unique. Another
possibility is that the primary group ID field may be bogus? Wish I had more to
offer. Think either could be the case?
Later... Karl
# 3 Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d6b9d0@news.dev-archive.com...
> Hi Jerry --
>
> >Why would that be?
> >
> >I took some code from an Access form and ported to VB to put into an MTS
DLL
> >so I can access it from a website. It works fine in Access but in VB
> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
> >
> >Anyone with a clue as to why I'm getting this?
>
> From what I understand, that usually means the account name is not unique.
Another
> possibility is that the primary group ID field may be bogus? Wish I had
more to
> offer. Think either could be the case?
>
> Later... Karl
>
The account name I know is not unique as I checked before I added the user.
The primary group ID could be the cause but, I'm using the same values as in
the Access application so I can't understand why it would work in Access but
not this VB app.
Later...
Jerry
# 4 Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d6b9d0@news.dev-archive.com...
> Hi Jerry --
>
> >Why would that be?
> >
> >I took some code from an Access form and ported to VB to put into an MTS
DLL
> >so I can access it from a website. It works fine in Access but in VB
> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
> >
> >Anyone with a clue as to why I'm getting this?
>
> From what I understand, that usually means the account name is not unique.
Another
> possibility is that the primary group ID field may be bogus? Wish I had
more to
> offer. Think either could be the case?
>
> Later... Karl
>
The account name I know is not unique as I checked before I added the user.
The primary group ID could be the cause but, I'm using the same values as in
the Access application so I can't understand why it would work in Access but
not this VB app.
Later...
Jerry
# 5 Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --
>The account name I know is not unique as I checked before I added the user.
Well then, what's the question? You can't add more than one user with the same
account name. Problem solved?
Later... Karl
Jerry D. Turner wrote in message <38d6bdf9$1@news.dev-archive.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d6b9d0@news.dev-archive.com...
>> Hi Jerry --
>>
>> >Why would that be?
>> >
>> >I took some code from an Access form and ported to VB to put into an MTS
>DLL
>> >so I can access it from a website. It works fine in Access but in VB
>> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>> >
>> >Anyone with a clue as to why I'm getting this?
>>
>> From what I understand, that usually means the account name is not unique.
>Another
>> possibility is that the primary group ID field may be bogus? Wish I had
>more to
>> offer. Think either could be the case?
>>
>> Later... Karl
>>
>
>The account name I know is not unique as I checked before I added the user.
>The primary group ID could be the cause but, I'm using the same values as in
>the Access application so I can't understand why it would work in Access but
>not this VB app.
>
>Later...
>
>Jerry
>
>
# 6 Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --
>The account name I know is not unique as I checked before I added the user.
Well then, what's the question? You can't add more than one user with the same
account name. Problem solved?
Later... Karl
Jerry D. Turner wrote in message <38d6bdf9$1@news.dev-archive.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d6b9d0@news.dev-archive.com...
>> Hi Jerry --
>>
>> >Why would that be?
>> >
>> >I took some code from an Access form and ported to VB to put into an MTS
>DLL
>> >so I can access it from a website. It works fine in Access but in VB
>> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>> >
>> >Anyone with a clue as to why I'm getting this?
>>
>> From what I understand, that usually means the account name is not unique.
>Another
>> possibility is that the primary group ID field may be bogus? Wish I had
>more to
>> offer. Think either could be the case?
>>
>> Later... Karl
>>
>
>The account name I know is not unique as I checked before I added the user.
>The primary group ID could be the cause but, I'm using the same values as in
>the Access application so I can't understand why it would work in Access but
>not this VB app.
>
>Later...
>
>Jerry
>
>
# 7 Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d7a30d$1@news.dev-archive.com...
> Hi Jerry --
>
> >The account name I know is not unique as I checked before I added the
user.
>
> Well then, what's the question? You can't add more than one user with the
same
> account name. Problem solved?
>
> Later... Karl
*not* should not be in there...the account name *is* unique. My mind was
apparently fried when I typed that.
# 8 Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d7a30d$1@news.dev-archive.com...
> Hi Jerry --
>
> >The account name I know is not unique as I checked before I added the
user.
>
> Well then, what's the question? You can't add more than one user with the
same
> account name. Problem solved?
>
> Later... Karl
*not* should not be in there...the account name *is* unique. My mind was
apparently fried when I typed that.
# 9 Re: NetUserAdd gives NERR_GroupExists
Friends don't let friends play with Net* APIs when in that state. ;-)
--
[This space intentionally left blank.]
Jerry D. Turner wrote in message <38d8001f$1@news.dev-archive.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d7a30d$1@news.dev-archive.com...
>> Hi Jerry --
>>
>> >The account name I know is not unique as I checked before I added the
>user.
>>
>> Well then, what's the question? You can't add more than one user with the
>same
>> account name. Problem solved?
>>
>> Later... Karl
>
>
>*not* should not be in there...the account name *is* unique. My mind was
>apparently fried when I typed that.
>
>
# 10 Re: NetUserAdd gives NERR_GroupExists
Friends don't let friends play with Net* APIs when in that state. ;-)
--
[This space intentionally left blank.]
Jerry D. Turner wrote in message <38d8001f$1@news.dev-archive.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d7a30d$1@news.dev-archive.com...
>> Hi Jerry --
>>
>> >The account name I know is not unique as I checked before I added the
>user.
>>
>> Well then, what's the question? You can't add more than one user with the
>same
>> account name. Problem solved?
>>
>> Later... Karl
>
>
>*not* should not be in there...the account name *is* unique. My mind was
>apparently fried when I typed that.
>
>