Hide/Show Subform Access 2003

H

HWhite

I've searched and found almost what I need in the forums, so I'm hoping
somebody can take me all the way.

I've created a form and created an area that will be a placeholder for three
subforms... dragged and dropped one form into another... basically one on top
of the other, but hidden until needed.

What I would like is for the forms to be hidden until the person clicks on a
button to show the appropriate form. Going from record to record hides the
forms automatically.

I was able to kind of accomplish this using the yourSubformName.Visible =
False and True commands, but the problem is the subform opens in a pop up
window the first time the command button is pressed and in the placeholder
area the second time the button is pressed. I don't know how to get around
that initial popup.

In a nutshell, what I want to happen is for a person to go to a record,
click "command button A" to open form A in the placeholder area only, enter
some data, click "command button B" to close form A and open form B in the
same area, enter data, click "command button C" which will close B and open
form C in the same area, and then all to close when the person navigates to a
new record. Hopefully that's clear.

Thanks very much for any help!
 
H

HWhite

nevermind everybody... I was able to figure it out... I had some code in my
Event Procedure that didn't belong. Don't know how it got there.

But the
FormA.Visible = True/False
FormB.Visible = True/False
FormC.Visible = True/False
settings and the OnCurrent - FormABC.Visible = False
method worked perfectly.
 

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