I have a form to detect idle time and close a db after a certain amount of time has been reached. It is launched at startup and hidden from the user. In order to close the form the user must enter a password.
If the user hits cancel on the password prompt, I want to close the password prompt and rehide the detect idle time form, but I'm getting an error that says, "Application-defined or object-defined error"
This is my code, line two is where I get the error when I debug:
If the user hits cancel on the password prompt, I want to close the password prompt and rehide the detect idle time form, but I'm getting an error that says, "Application-defined or object-defined error"
This is my code, line two is where I get the error when I debug:
Code:
Private Sub cmd_Cancel_Click()
[COLOR=red]Forms!DetectIdleTime.Visable = False[/color]
DoCmd.Close acForm, "PasswordPrompt"