closing a pop up form2

R

RayNDM83

Hi,
Is there a way after a button on form2 is clicked, this form2 will close by
itself. The button on form2 that was click musst first filter (already) an
open form1 before closing form2.
Thanks in advace.
Raymund
 
K

Klatuu

Where ever you have the code to filter form 1, follow it with

Docmd.Close acForm, Me.Name
 
R

RayNDM83

I created the codes in the macro objects. Where Action is to 'OpenForm', Form
Name: 'Form1", View: 'Form', Filter Name: blank, Where Condition:
[field1]="aa" or [field2]="bb" and window mode: Normal
 
R

RayNDM83

Thank you for taking time to response. When I tried this the first time,
somehow I did something wrong that it didn't work. I tried it again adding
"close" to the action, type the object type and object name to be close and
it worked.

RayNDM83 said:
I created the codes in the macro objects. Where Action is to 'OpenForm', Form
Name: 'Form1", View: 'Form', Filter Name: blank, Where Condition:
[field1]="aa" or [field2]="bb" and window mode: Normal

Klatuu said:
Where ever you have the code to filter form 1, follow it with

Docmd.Close acForm, Me.Name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top