Close A Form Using Win API

D

Devlin

I am working with multiple instances of forms and I am interested in knowing
if anyone has experience in using the Win API to close a specific form.

Note that I am aware of how to destroy a form instance in Access by simply
removing it from scope and otherwise close a form using the Docmd.CloseForm.
What I want to be able to do is bypass the Docmd method since it only deals
with form names. I then want to be able to close each form by it's handle
reference.

What concerns me about using the API is that I may also be bypassing some
necessary behind the scenes methods that are handled by Access.

Any help here is appreciated.
 
D

Douglas J. Steele

Already answered in another newsgroup to which you posted the same question.

If you feel you need to post to more than one group (HINT: it's seldom
necessary), please have the courtesy to cross-post (send the one message to
all groups at once), rather than multi-post (send individual messages to
each group). In this way, all responses to your post will be available
together, regardless of what group the responder was in, and the rest of us
won't have to read your post multiple times. (It also uses fewer server
resources)

If you're using Microsoft's web interface to post, you should see an
"Advanced Options" link at the bottom of the page. You can type the names of
the various groups into the Newsgroup box, separating each newsgroup name
with a semicolon.
 
Top