Link to home
Start Free TrialLog in
Avatar of Amanuel Agajjie
Amanuel Agajjie

asked on

Modal form

I designed user login with modal form. This modal form has no option to edit or close button. After sign in the form doest exit. Please help me what I have to do?
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

if you want to close the form after correct login add a line to close the form

docmd.close acform, me.name
Avatar of Amanuel Agajjie
Amanuel Agajjie

ASKER

Thank you for your quik reply. But in order to edit code the dodal form can't be exit. If not exit I couldn't do anything . even right click option on the form is disabled
If you have not given yourself a way out, you need to Ctrl/Alt/Del and kill the MS Access task.   Then open the DB and fix the form so you have an exit button.

Jim.
open the db application while holding the SHIFT Key
then open the form in design view
go to VBA window and add the code
@rey. The database is assied with login modal form. When I open the database the login modal form runs. And unable to acess design view
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if still you can't stop the db from opening with the login form, upload a copy of the db.
Shift-enter to open should work -- if not, try removing the modal form as the form to open when the db is opened, then close and reppen the db.
if you unable to bypass the login form, create a new database and import all the objects EXCEPT the form in question.
Solved!!!!!!!!!! |THANK YOU ALL!!!!!!!!!!!!!!!!!!!!!!!!!
Thank You! Solved