[AccessD] subform close

jwcolby jwcolby at colbyconsulting.com
Wed Jan 21 10:41:22 CST 2009


The main form has a subform control on it, which hosts the 
subform.  that cpontrol has a "source object" property. 
that property has to be set to a zero length string to cause 
the subform to unload.

John W. Colby
www.ColbyConsulting.com


William Hindman wrote:
> ...subform hosted on non-linked main form
> 
> ...command button on subform
> 
> DoCmd.Close ...button animates but form doesn't close
> 
> ...thinking that I'm probably going to have to set the mainform subform 
> sourceobject to "" or another object and clean up anything on the open 
> subform such as dirty data before I do it.
> 
> ...anyone done this and have tested code or suggestions?
> 
> William
> 
>  
> 
> 



More information about the AccessD mailing list