Solved

MS Access 2010 Hide Form

Posted on 2015-02-13
2
100 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:
SimonAdept earned 500 total points
Comment Utility
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
Comment Utility
Hi Simon,
It works perfectly.
Thanks.
Bob C.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now