473,388 Members | 1,423 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,388 software developers and data experts.

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 "MinimizeApp", 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 1954
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 "MinimizeApp", 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********@sbcglobal.net> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.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 "MinimizeApp", 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
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...
7
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 =...
1
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")...
4
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...
2
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....
6
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...
2
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...
6
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.