Solved

Is there VBA coding to identify in a Form_Open Event that a DoCmd.Open "frmName" is being opened as hidden?

Posted on 2007-11-13
6
546 Views
Last Modified: 2013-11-27
I'm working with an Access database that may be opened in another form and want to know if the Form_Open Event can tell if its being opened as hidden or visible?

In other words, is there VBA coding to identify in a Form_Open Event that a DoCmd.Open "frmName" is being opened as hidden?
0
Comment
Question by:stephenlecomptejr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 14

Accepted Solution

by:
ragoran earned 500 total points
ID: 20275613
have you try to test the property me.visible ?
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 20275677
Curiosity overwhelms me.. what is the purpose of opening a form as .Visible = False?  There are very few requirements I've seen where this is needed.
0
 
LVL 14

Expert Comment

by:ragoran
ID: 20275698
Personally, When I have a very large form that are used often, instead of closing the form, I hide them.  So when the user click on my menu to reopeon, I simply made them visible again... much faster

(I managed my own collection of "forms" to implement this behavior)

But I can't assume that it is the same for the asker.

0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 65

Expert Comment

by:Jim Horn
ID: 20281578
That, and if you want to have an event that fires every x time interval, that is best done with a hidden form, even though it hogs resources.

I've seen a lot of badly-designed apps that pass variables back and forth using hidden forms.
0
 
LVL 14

Expert Comment

by:ragoran
ID: 20283473
>> I've seen a lot of badly-designed apps that pass variables back and forth using hidden forms <<

Yuck!
0
 
LVL 1

Author Comment

by:stephenlecomptejr
ID: 20290700
>> I've seen a lot of badly-designed apps that pass variables back and forth using hidden forms <<

I've got a startup form that opens another form - that opens up several bound forms to speed up the access to data.  One of the bound forms happen to have combo box's recordsources adjusted upon opening and refuses to be visible until I used the above code.

If you think this is another badly-designed app - you guessed correctly.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

732 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