Calling a form module but opening the form with acHidden

  • Thread starter robert d via AccessMonster.com
  • Start date
R

robert d via AccessMonster.com

I have a form, Form2 that performs some calculations based on textbox values
on the form. I want to call one of the form procedures from another form,
Form1.

1) The procedure I'm using is to open Form2 from Form1 using the acHidden
option with DoCmd.OpenForm

2) Then the code in Form1 calls the procedure for the form using the
following syntax

Call Forms.Form2.Form2ProcedureName

3) Close Form2 from Form1

Everything works okay, except that there is a flash of Form2 opening.

I'm not sure why this is happening, because Form2 was opened with acHidden.
 
R

robert d via AccessMonster.com

I think I found the answer. I put the following statement in the Form2 load
event:

DoCmd.Maximize

and I guess this is what is causing the form to be displayed even though I'm
using the acHidden option. Removing the maximize command keeps the form
hidden.
 

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