PC Review


Reply
Thread Tools Rate Thread

Changing Passwords Error: Item not found in this collection

 
 
8020
Guest
Posts: n/a
 
      12th Nov 2009
I have a bit of code to change users passwords that works perfectly until I
use a different workgroup or even move the workgroup that works to a
different location! What am I doing wrong? Any ideas appreciated (Access03):


usrx = Me!Combo8
strOldPassword = ""
strNewPassword = Me!Text14

Dim wrk As DAO.Workspace
Dim usr As DAO.User

Set wrk = DBEngine(0)
Set usr = wrk.Users(usrx)

usr.NewPassword strOldPassword, strNewPassword

Set usr = Nothing
Set wrk = Nothing
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      12th Nov 2009
On Thu, 12 Nov 2009 01:10:01 -0800, 8020
<(E-Mail Removed)> wrote:

I find that hard to believe. If you move the workgroup, and then run
the app again and you have a correct shortcut specifying
/wrkgrp <path_to_mdw>
then you should be OK.

There may be something wrong with your application of security,
because normally speaking if you're not using the workgroup file that
belongs to the app, you can't get in. Workgroup security is an
advanced topic which you should only work with after downloading,
studying, and fully understanding the Access Security FAQ from
microsoft.com

-Tom.
Microsoft Access MVP


>I have a bit of code to change users passwords that works perfectly until I
>use a different workgroup or even move the workgroup that works to a
>different location! What am I doing wrong? Any ideas appreciated (Access03):
>
>
>usrx = Me!Combo8
>strOldPassword = ""
>strNewPassword = Me!Text14
>
> Dim wrk As DAO.Workspace
> Dim usr As DAO.User
>
> Set wrk = DBEngine(0)
> Set usr = wrk.Users(usrx)
>
> usr.NewPassword strOldPassword, strNewPassword
>
> Set usr = Nothing
> Set wrk = Nothing

 
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
Item not found in this collection error 8020 Microsoft Access VBA Modules 1 3rd Nov 2009 02:52 PM
Item not found in collection Error 3265 =?Utf-8?B?VGVk?= Microsoft Access VBA Modules 2 29th Mar 2006 09:40 PM
Item not found in this collection error =?Utf-8?B?QnJhbmRvbg==?= Microsoft Access 6 9th Nov 2005 07:21 PM
error 3265: Item not found in this collection =?Utf-8?B?VGhlIE1lY2Nh?= Microsoft Access Form Coding 1 10th Aug 2005 11:05 PM
Error : Item not found in this collection spowell15@yahoo.co.uk Microsoft Access Queries 7 24th Jun 2005 05:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 AM.