473,836 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I force MS Access to stay minimized?

Hi, folks - I am trying to build a macro that Outputs a query to Excel,
then Auto Starts the Excel doc to show the query results.

I'd like Excel to be the top window when this is done, but my macro
always restores MS Access to the front when it finishes, hiding the new
Excel doc. I've tried ending my macro with "MinimizeAp p", but it simply
minimizes Access... then immediately restores it again, covering Excel.

Is there a way to force MS Access to stay minimized at the end of my
macro, so that the Excel doc remains on top until the user chooses to
select Access again manually?

Thanks in advance for your help!

Nov 13 '05 #1
2 1970
michael wrote:
Hi, folks - I am trying to build a macro that Outputs a query to
Excel, then Auto Starts the Excel doc to show the query results.

I'd like Excel to be the top window when this is done, but my macro
always restores MS Access to the front when it finishes, hiding the
new Excel doc. I've tried ending my macro with "MinimizeAp p", but it
simply minimizes Access... then immediately restores it again,
covering Excel.

Is there a way to force MS Access to stay minimized at the end of my
macro, so that the Excel doc remains on top until the user chooses to
select Access again manually?

Thanks in advance for your help!


Not sure as this is not something I have done, but could you write a macro
that selected a cell in the workbook, or something similar, that means the
window gets selected and is thus displayed on top?
Nov 13 '05 #2
Why not use Excel to get the data from the database?

See the Excel menu : Data, Import External Data.

Just design a query that gives you the data you want from the database and
then select it for importing.

--
Slainte

Craig Alexander Morrison
"michael" <mp********@sbc global.net> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hi, folks - I am trying to build a macro that Outputs a query to Excel,
then Auto Starts the Excel doc to show the query results.

I'd like Excel to be the top window when this is done, but my macro
always restores MS Access to the front when it finishes, hiding the new
Excel doc. I've tried ending my macro with "MinimizeAp p", but it simply
minimizes Access... then immediately restores it again, covering Excel.

Is there a way to force MS Access to stay minimized at the end of my
macro, so that the Excel doc remains on top until the user chooses to
select Access again manually?

Thanks in advance for your help!


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7105
by: Paul | last post by:
Hi, I'm using a little javascript to help my site's design to fit the visitor's entire browser window. Everything works great apart from one problem. If a visitor first loads the page and the browser isn't maximised, the page loads correctly BUT if the visitor then proceeds to maximize the browser, the page is still set for the minimised browser. This condition stays until the visitor goes to another section of the site or refreshes the...
7
5480
by: Colleyville Alan | last post by:
I have an app that uses Access to grab various PowerPoint slides using the followhyperlink command. I have set the PPT window to run in a minimized state: FollowHyperlink link Set oPres = oPPT.ActivePresentation oPPT.WindowState = ppWindowMinimized Then I do the copy and paste part: With oPres
1
3860
by: Console guy | last post by:
How do I force a console application to be minimized upon launch? I have a C# application which starts a console application via the following syntax: System.Diagnostics.Process.Start("Console.exe") I can't seem to find the compiler options to allow this to be minimized. Any help Thanks.
4
1643
by: Stan Sainte-Rose | last post by:
First, I thank you Herfried. I have 3 tabpages in a tabcontrol. I would like to force the user to stay in the current tabpage until he doesn't correctly fill some textboxes. I know how to prevent bad entries but if I click onto another tabpage, I can leave the current tabpage. I try to use the select property but it doesn't work. Any idea ?
2
6170
by: Gil | last post by:
can you set focus to the current access application through vba? lets say i tell access to open another application and that new application gains the focus and causes access to loose the focus. can access reset the focus back to its current access application after loosing its focus? docmd.select object or me.setfocus doesnt seem to work. what it does it set the highlet on a textbox within the form but the form is still not selected....
6
3172
by: Thelma Lubkin | last post by:
I am trying to modify an Access form that allows a user to specify the information s/he needs from a census-type database. The form's code builds a SQL statement from the user's request, and creates from this a record set that is used to populate a new Excel workbook. The form's code opens the new workbook and writes both a datasheet and a graph based on the data to it. The graph appears on the user's screen very briefly and then...
2
5301
by: cottonj | last post by:
is there anyway to force an event, like mouseover? I have a page that loads, and due to some complex js code (not mine) it fails to write labels to tabs until the user does a mouseover on the tabs. the page load event happens beforre the tabs are loaded. Once the user mouseovers the tabs, the labels of the tabs appear, and stay there. it is irritating. i would like to force a mouseover so the tab names appear. thanks
6
1931
by: =?Utf-8?B?QWxsZW4=?= | last post by:
When minimizing Visual Basic application, working memory is greatly reduced from about 20 MB to only about 2 MB. However I want the application to start as minimized, and most of the time it will remain minimized, never being brought to normal or maximized view and consequently then minimized. However when started minimized the working memory stays at 20 MB until the app is restored to normal/maximized and then minimized. How do I get...
1
3667
by: x taol | last post by:
currently, access applications is opend two on windows XP professional. A : access application B : access application and the A has a form having a button. if you open the form and press the button, messagebox appear..... as following the current B is minimized or maximized.... namely,,,,
0
9810
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9654
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10565
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10237
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9348
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6972
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5641
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.