473,503 Members | 12,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide Query Output

I am using the following code to run a query:
DoCmd.OpenQuery "qryLocation", acNormal, acEdit

The query works fine, but the results of the query display on the screen.
This was helpful when I was designing/debugging the application, but it is
distracting in the finished application.
Is there some way I can prevent the results from being displayed?

thanks
May 31 '06 #1
3 4960
"RICHARD BROMBERG" <no*****@att.net> wrote in message
news:j4*********************@bgtnsc04-news.ops.worldnet.att.net...
I am using the following code to run a query:
DoCmd.OpenQuery "qryLocation", acNormal, acEdit

The query works fine, but the results of the query display on the screen.
This was helpful when I was designing/debugging the application, but it is
distracting in the finished application.
Is there some way I can prevent the results from being displayed?

thanks

Why are you opening a query if you don't want to view the results? What is
it that you're wanting to achieve?

Keith.
www.keithwilby.com
May 31 '06 #2
Here is the actual code :

DoCmd.OpenQuery "qryLocation", , acNormal, acEdit
DoCmd.TransferSpreadsheet acExport, 8, "qryLocation", stDestination, False

qryLocation selects a set of records based on a City and Street.

What I am doing is creating an Excel spread sheet based on the query.

Thanks
"Keith Wilby" <he**@there.com> wrote in message
news:44**********@glkas0286.greenlnk.net...
"RICHARD BROMBERG" <no*****@att.net> wrote in message
news:j4*********************@bgtnsc04-news.ops.worldnet.att.net...
I am using the following code to run a query:
DoCmd.OpenQuery "qryLocation", acNormal, acEdit

The query works fine, but the results of the query display on the screen. This was helpful when I was designing/debugging the application, but it is distracting in the finished application.
Is there some way I can prevent the results from being displayed?

thanks

Why are you opening a query if you don't want to view the results? What

is it that you're wanting to achieve?

Keith.
www.keithwilby.com

May 31 '06 #3
You don't need to open the query to export it. Just don't open it.
May 31 '06 #4

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

Similar topics

10
12022
by: Mark | last post by:
Sorry, I'm a newbie to php ;) I was thinking about using php to write the script file, something like: <script type="text/javascript" src="http://insert_url_here.com/myScript.php"></script> ...
4
7148
by: John | last post by:
Hi everyone, I have a stored procedure which I use to query a table. The first part of the stored procedure uses a cursor to update a temp table whilst the second part of the query actually...
2
2359
by: Mark | last post by:
Hi all, I have a pop-up which has several command buttons which allow users to run a few stored query's. Having the query's displayed as report is not an option due to several reasons. My problem...
2
1899
by: Woody Splawn | last post by:
I have begun to use database projects for performing test and extemporanious queries. That is, I create a new .dtg file and run a query there for testing. Is it possible to hide or block out...
0
1271
by: Robert Hilkene | last post by:
Hi there I want to hide output characters in my py program. I found that for Macintosh you implement 4.12 quietconsole -- non-visible stdout output...
3
8426
by: skygoh | last post by:
Hi! Currently we need to give user the mde file to run the report. But as mde just can hide form, marco, modules only. Does there have anyway hide the table and query for the user to view the design?...
3
7487
by: =?Utf-8?B?Um9iZXJ0IENoYXBtYW4=?= | last post by:
Hi, I have a GridView with a fixed number of columns being returned from a SQL query and each having a simple template: <asp:TemplateField HeaderText="Allocations"> <edititemtemplate>...
2
3171
by: Flic | last post by:
Hi, I have a basic db that I access with MySQL query browser. Everything seems fine to me but I am using this db as part of a php shopping basket and when I try to add an item I get: Notice:...
2
1766
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, How can I query a Windows.Form control if it is hidden or not. I would like to toogle Hide/Show and not use a bool as control variable for this but simply query the form werther or not its...
0
7212
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
7098
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...
0
7364
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...
1
7017
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...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.