Solved

MS Access 2010 Hide Form

Posted on 2015-02-13
2
104 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert GUI app into console app for Win32 Env 5 100
Need more details 5 151
Add a task in Outlook from access 11 39
Advice in Xamarin 21 79
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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 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