Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MS Access 2010 Hide Form

Posted on 2015-02-13
2
Medium Priority
?
154 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

927 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