Solved

MS Access 2010 Hide Form

Posted on 2015-02-13
2
110 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

713 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