|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Detecting user with blank password?Hi,
I want to secure my database. Users are using the database for some time now and some of them does not have their password for login into the DB. Is there a code to detect users with blank password? SF You can try to open a new workspace, passing CurrentUser() as the username
and "" as the password. If you don't get an error, then the "" password is correct, and they have a blank password. Dim ws as Workspace Set ws = DBEngine.CreateWorkspace("tempws", CurrentUser(),"") If Err=0 then 'they have a blank password 'open a form for them to change their password Else 'they don't have a blank password 'do nothing End If -- Show quoteHide quoteJoan Wild Microsoft Access MVP SF wrote: > Hi, > > I want to secure my database. Users are using the database for some > time now and some of them does not have their password for login into > the DB. Is there a code to detect users with blank password? > > SF I also need to do this, but need more details to complete this task - could
you please explain in a little more detail what you need to do? Many thanks. Show quoteHide quote "Joan Wild" wrote: > You can try to open a new workspace, passing CurrentUser() as the username > and "" as the password. > If you don't get an error, then the "" password is correct, and they have a > blank password. > > Dim ws as Workspace > Set ws = DBEngine.CreateWorkspace("tempws", CurrentUser(),"") > If Err=0 then > 'they have a blank password > 'open a form for them to change their password > Else > 'they don't have a blank password > 'do nothing > End If > > > > -- > Joan Wild > Microsoft Access MVP > > SF wrote: > > Hi, > > > > I want to secure my database. Users are using the database for some > > time now and some of them does not have their password for login into > > the DB. Is there a code to detect users with blank password? > > > > SF > > >
Object Permission Message
If faq_IsUserInGroup Syntax for three groups. faqChangePassword Re: User and Workgroup was screwed User and Workgroup was screwed Access 2003: Help Converting ".mdw" file to access 2003 As the administrator on home pc I can no longer login. What 2do? make read only New Security User |
|||||||||||||||||||||||