[AccessD] Close a form during the Activate event

Charlotte Foust charlotte.foust at gmail.com
Mon Dec 5 15:51:33 CST 2011


I'm not clear on what the problem is.  You can close a form from other
events within a form.  What was the message you got and what event were you
trying to use?

Charlotte Foust

On Mon, Dec 5, 2011 at 1:09 PM, Benson, William (GE Global Research,
consultant) <Benson at ge.com> wrote:

> There is something that I require to be true, upon testing, or this one
> particular form I consider to be dangerous to use. It is a condition
> that may change over the session, it is not necessarily a stable
> condition during the user session.
>
> I understand it can be tested for on Form Open, and the opening of the
> form can then be canceled. But how about afterwards:  For example,
> suppose on activation of the form, I want to test the condition again.
> According to an error message I just got, I am not allowed to close the
> form during the form's events.
>
> I am kinda stumped how to protect myself now, if I cannot make this
> check-environment-and-dismiss-form occur on a form's events.
>
> I guess I could have a hidden form checking this on a timed basis but I
> am sure that will cause some regrets.
>
> TIA...
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
>
>
> Website: http://www.databaseadvisors.com
>
>
>



More information about the AccessD mailing list