Question : Cannot use .close for an open form?

I am obviously missing something - probably something silly as well.

I have a form I want to close after a selection is made and a button is clicked but cannot do so using the full form name and .close such as "FORM_frmname.close". I thought this was a valid object method/action? I know the object reference is correct.

I CAN close it with docmd.close - so this will work for me - but I am not comfortable with the lack of a reference (ie: close what?) and would rather specify the formname I am closing.

Answer : Cannot use .close for an open form?



docmd.close acform,me.name
Random Solutions  
 
programming4us programming4us