Solved

MS Access 2010 Hide Form

Posted on 2015-02-13
2
107 Views
Last Modified: 2015-02-13
Hi Experts,

I have Form A open.  I click a button and Form B opens and Form A closes as I don't want the User to have access to it at that point.  Form A doesn't access a Database (which allows it to re-link to other copies of databases etc.) but form B does.  Eventually I close Form B and open Form A again.  i.e. Reverse the process.

 I would like to 'hide' Form A instead of closing it when I open Form B which will allow me to pass data between  unbound fields on Form A and then 'un-hide' Form A when I close Form B.

 I don't know the syntax to 'hide' and 'un-hide' Form A (assuming it can be done).  There isn't a '.visible' Property for a Form Object that I can see.

Is this possible and if so how do I do it.

 Thanks.
 Bob C.
0
Comment
Question by:Bob_Collison
2 Comments
 
LVL 18

Accepted Solution

by:
Simon earned 500 total points
ID: 40609181
Use this syntax from another form or module:
Forms!frmYouWantToHide.Visible = False

or this from the class module of the form itself (e.g if you have a command button on Form A to open Form B:
Me.visible = False

To unhide the form, use True instead of False.
0
 

Author Closing Comment

by:Bob_Collison
ID: 40609228
Hi Simon,
It works perfectly.
Thanks.
Bob C.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question