I'v got a form thats going to delete a bunch of stuff but I want it pw protected so I created a in-between form asking for a pw. But I cant get the PW to be blank when I open the form. I have a table with PW and PW Entered where PW is the correct and PW Entered is the users pw. If it's correct then it goes ahead and opens the correct form but if it's incorrect it closes just like it's supposed to. But after all is said and done the next time I open the in-between form the PW is still there whether correct or incorrect. I just need it to be gone everytime. any suggestions are great..... thanks.
Private Sub Command5_Click( )
If Me.Entered_Pass word = Me.Password Then
DoCmd.OpenForm "ResetDaysWork" , acNormal, , , acFormEdit, acWindowNormal
DoCmd.Close acForm, "OpenReset" , acSaveNo
Else
DoCmd.Close acForm, "OpenReset" , acSaveNo
End If
End Sub.
Private Sub Command5_Click( )
If Me.Entered_Pass word = Me.Password Then
DoCmd.OpenForm "ResetDaysWork" , acNormal, , , acFormEdit, acWindowNormal
DoCmd.Close acForm, "OpenReset" , acSaveNo
Else
DoCmd.Close acForm, "OpenReset" , acSaveNo
End If
End Sub.
Comment