Detecting user with blank password?

S

SF

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
 
J

Joan Wild

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
 
N

Neil Morris

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top