vba - Access Form Will Not Close -


i have access form supposed close predecessor -

if currentproject.allforms("fmfilecheck").isloaded     docmd.close acform, "fmfilecheck", acsaveno     else     end if 

the if statement works fine (i have injected message box test) form doesn't close. no error message or anything, sits there , tants me, squirrel taunts cat.

edit:

the form opens on "current" event of predecessor , code above executes on "current" - if code open second form called via button on first works fine - issue guess somewhere in there?

a possibility form named frmfilecheck , not fmfilecheck? double check spelling on name of form.

you can debug program see if condition true , command being executed.

i think don't need nest close command in if loaded statement. execute command , if loaded, close it. positive not error closing form not loaded.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -