473,382 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Two forms showing with acCmdAppMinimize?

missinglinq
3,532 Expert 2GB
I'd like to use acCmdAppMinimize with two forms on the screen at once. Currently, if I have a form opening the db (with DoCmd.Maximize in the OnLoad event) and then a popup form on top of the first form, the first form vanishes when the second form appears.

Alternatively, I like to have both showing with just the Access container showing, with no native menus showing. Unchecking everything in Startup gets rid of everythinh except File - Edit - Insert - Records - Help menu.

Does anyone have any relevant experience?

Thanks!
Mar 31 '07 #1
15 2659
Denburt
1,356 Expert 1GB
Will this do what you would like?

DoCmd.RunCommand acCmdTileVertically
Mar 31 '07 #2
missinglinq
3,532 Expert 2GB
Sorry, didn't explain clearly enough! I have a maximized from with a smaller popup form on top and I want them both to appear. Currently the larger (background form) disappears when the popup appears.

I will, however, stash your response away for future reference!
Apr 1 '07 #3
Denburt
1,356 Expert 1GB
I still don't understand maybe you have some code on that button click, or somewhere making the first form hide itself. I can make a popup and still see the first form no problem....
Apr 1 '07 #4
Denburt
1,356 Expert 1GB
I have tried to work this a number of ways using acCmdAppMinimize to minimize the application, when I return to the application it is fine, I think what may be going on is that you may be clicking on a form that is open, the task bar will by default show all forms etc. open in access (this can be changed), so if you don't click the Application itself then your issue could happen. I Press Alt and hold it then I can tab through and see the application Icon and no problem.
Apr 1 '07 #5
missinglinq
3,532 Expert 2GB
I'm doing a very small app for non-techies and apparently they're intimidated by the Access background/menus etc. The main form is fairly small, so I've just got a second form simply to provide a "backdrop" for the main form. The backdrop form is maximized, no border without any of the usual native Access controls; no maximize/minimize/close buttons, etc. This form is set in Startup to load when the app starts up. When it backdrop form loads, in the OnLoad event:

1) The backdrop form maximizes
2) the acCmdAppMinimize command is given
3) The backdrop form calls the second, popup form

When Access opens the db, only the second (popup) forms appears! If the acCmdAppMinimize command is omitted, the background form loads then the popup form loads on top of it, with both forms showing, as is wanted.
Apr 1 '07 #6
Rabbit
12,516 Expert Mod 8TB
When you maximize a form, everything in the database gets maximized. So what you actually want is to maximize just the one form to fill the screen as a "background" and have the second form be non-maximized, corrent?

Just trying to clarify, I don't know of a way to do this. Maybe throuh an API.
Apr 1 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
Hi Linq

Have you thought about having your popup form(s) appear on the background form as subforms. That way the background form remains maximised and the subform could be designed with borders to look like a form.

Mary
Apr 1 '07 #8
missinglinq
3,532 Expert 2GB
Rabbit: That's correct. The popup form is set to Dialog and doesn't maximize, even though it opens after the maximized form. I believe that's the only exception to "everything maximizes."

Mary: That's an idea! I'll give it a try!

Thanks everyone!

Linq
Apr 1 '07 #9
missinglinq
3,532 Expert 2GB
No joy, Mary! When I tried your suggestion, everything worked fine until I threw acCmdAppMinimize into the mix. Here's the sum total of code in the maximized, background form. It's so simple I don't see how it could affect anything:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.   Dim stDocName As String
  3.   Dim stLinkCriteria As String
  4.  
  5.  DoCmd.Maximize
  6.  DoCmd.RunCommand acCmdAppMinimize
  7.  stDocName = "frmWeights"  'the popup form
  8.  DoCmd.OpenForm stDocName, , , stLinkCriteria
  9. End Sub
  10.  
I'm beginning to think the normal behaviour of acCmdAppMinimize is to only display one form at a time; I just wish someone could confirm that, if true. I've trolled the web for two days looking, as well as going thru all my reference books! The fun thing about Access, of course, is that so very much of it isn't documented anywhere, not even in MS' Knowledge Base!

Thanks anyway!

Linq
Apr 1 '07 #10
MMcCarthy
14,534 Expert Mod 8TB
No joy, Mary! When I tried your suggestion, everything worked fine until I threw acCmdAppMinimize into the mix. Here's the sum total of code in the maximized, background form. It's so simple I don't see how it could affect anything:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.   Dim stDocName As String
  3.   Dim stLinkCriteria As String
  4.  
  5.  DoCmd.Maximize
  6.  DoCmd.RunCommand acCmdAppMinimize
  7.  stDocName = "frmWeights"  'the popup form
  8.  DoCmd.OpenForm stDocName, , , stLinkCriteria
  9. End Sub
  10.  
I'm beginning to think the normal behaviour of acCmdAppMinimize is to only display one form at a time; I just wish someone could confirm that, if true. I've trolled the web for two days looking, as well as going thru all my reference books! The fun thing about Access, of course, is that so very much of it isn't documented anywhere, not even in MS' Knowledge Base!

Thanks anyway!

Linq
Why do you need acCmdAppMinimize?
Apr 1 '07 #11
missinglinq
3,532 Expert 2GB
This is just a very small app with a limited function to be used by non-techie end users. Apparently the end users feel intimidated by the Access container/background/menus! Of course the person requesting my help didn't tell me this until after the fact! I'm going to drop the acCmdAppMinimize and just go with having everything unchecked in Startup. This will give me the same look with only the minimal Access container with the single File/Edit/View/Insert menu at the top.

BTW, the command works great for popping up a single form on the desktop, without all the overhead normally associated with Access!

Thanks again!

Linq
Apr 1 '07 #12
MMcCarthy
14,534 Expert Mod 8TB
Thanks for the advice Linq. I'll have to remember that one. Glad you have it working. Wouldn't it be great if we could eliminate the users. :rolleyes:

Mary
Apr 1 '07 #13
missinglinq
3,532 Expert 2GB
Yeah!It's like they say about teaching; it's a pretty good job if it weren't for the students! Of course you have to understand, they person requesting my help, who didn't mention hiding the Access background until after the app was 90% finished, is an Assisstant Professor of Informatics!

Have a great afternoon, Mary!

Linq
Apr 1 '07 #14
missinglinq
3,532 Expert 2GB
Got the answer! In case anyone is interested (or hits this post on a search on the subject) the answer was to have both forms set to popup!

Thanks to Vic Rauch

http://www.vicrauch.com/

aka The GolferGuy for the solution!
Apr 1 '07 #15
Denburt
1,356 Expert 1GB
Glad you got it.
Apr 1 '07 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Daniel Hill | last post by:
OK, I have very, VERY basic background knowledge of VB6 and have now upgraded to VB.NET and now I'm struggling to bring up the forms I want. What I am looking to do is to have a click a command...
3
by: polytimi8 | last post by:
Hello, I would like to know if it is possible to create a form in Access2000, which would function like a calendar for 8 operating rooms in hospital, showing which hours are those closed for a...
0
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the...
2
by: Red Green | last post by:
I am trying to switch to C# from Delphi and I am having some trouble finding some information. What I need to do should be simple but I have been through a dozen books and done web searches that...
0
by: abhijit | last post by:
hi, I am facing a strange forms authentication problem in IE 5.0 browser in MAc OS X 9.5 I could not test it in safari. this code: public partial class _Default : System.Web.UI.Page {...
3
by: Lloyd Sheen | last post by:
I have the following situation: Need a user resizable user control. After much trying with user control I came across the idea of hosting the controls in a form marked as not TopLevel = false. ...
5
by: Wayne | last post by:
Several of my Access 2003 databases are exhibiting the same problem under Windows Vista. Charts in forms are not showing any data. Reports are not affected. Charts in reports display as they...
3
by: =?Utf-8?B?TWlrZSBDb2xsaW5z?= | last post by:
I have a web application that I started building. I created a master page with some javascript in the head: <script src="<%# Request.ApplicationPath%>/Scripts/Main.js"...
6
by: postman | last post by:
I have an application that minimizes the Access application window and displays a pop-up modal form. The Application window is minimized with this command in the form's Load event. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.