473,698 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Macros and queries

I've got a Macro that runs a few Queries and then ends with a Report. It
opens all the Queries and leaves them open and I'd really prefer that it not
do that. Is there a way to just run the Queries and/or close them
immediately?

Thanks,
Robert
Nov 13 '05 #1
3 1874
Robert wrote:
I've got a Macro that runs a few Queries and then ends with a Report. It
opens all the Queries and leaves them open and I'd really prefer that it not
do that. Is there a way to just run the Queries and/or close them
immediately?


I don't use macros but I think there's a close command you can use? I
don't see the point of opening a select query if you're not looking at
it's contents anyway, action queries I can understand running before a
report to do something that the report needs but they don't open on
screen, just execute so automatically close anyway.

--
[OO=00=OO]
Nov 13 '05 #2
The Select Query is choosing the Records for my Report.

Robert

"Trevor Best" <no****@besty.o rg.uk> wrote in message
news:42******** **************@ news.zen.co.uk. ..
Robert wrote:
I've got a Macro that runs a few Queries and then ends with a Report. It
opens all the Queries and leaves them open and I'd really prefer that it
not do that. Is there a way to just run the Queries and/or close them
immediately?


I don't use macros but I think there's a close command you can use? I
don't see the point of opening a select query if you're not looking at
it's contents anyway, action queries I can understand running before a
report to do something that the report needs but they don't open on
screen, just execute so automatically close anyway.

--
[OO=00=OO]

Nov 13 '05 #3
Never mind. I figured out that I can use a Filter instead of the Query to
build my Report.

Thanks. Lot's to learn but I'm getting there. This is kinda' cool.
"Robert" <ro***@email.co m> wrote in message
news:3_******** ************@co mcast.com...
I've got a Macro that runs a few Queries and then ends with a Report. It
opens all the Queries and leaves them open and I'd really prefer that it
not do that. Is there a way to just run the Queries and/or close them
immediately?

Thanks,
Robert

Nov 13 '05 #4

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

Similar topics

12
2846
by: David Powell | last post by:
Because my work area won't have an Access programmer next year, I've been asked to rebuild their coded application as a set of modular tools. The idea is that a non-programmer will be able to modify it as requirements change. More generally, in fact, they want a general package of functions that will anticipate *all* requirements. They must be called as macros. I can appreciate that a simple sequence of operations could be
1
1089
by: Lumpierbritches | last post by:
Thank you in advance. Is there a way to update Runtime Versions of Access 97, with just the Queries, Forms, Macros, and Modules, leaving the tables in tact? Is there a bit of code to do this, or someplace to learn how to do so? Michael
3
1908
by: Momoko | last post by:
Hi, I have three Access Databases, say A, B and Main, in which data flows between Main and A, Main and B. Within A and B, there are macros that trigger computation within the databases. I need to call these macros in A and B from Main database. My understanding is that ODBC is used for SQL based queries, not for calling modules or macros within the databases. What should I build to create a control within the Main database such...
6
2802
by: Reg | last post by:
At present I'm running a number of macros with a schedular on my computer to update and maintain databases within our network. All my backends contain the tables that the macros update. But all the backends are on servers that do not have access loaded on them. I don't think it's possible to activate these macros from the servers schedular without access being present. Is this true? Thanks Reg
2
1683
by: Josh E | last post by:
Is it possible to write custom macros in Access, or are you only able to use the ones they allow? If so, how do you go about accessing the Editor. One more question, what is a good source to learn how to write a macro that exports certain data from Access into Excel, then formats it. I have queries written in Access and a macro that exports it to Excel, but then you have to format it everytime so it looks like a blance sheet. Is there...
0
1316
by: kkrizl | last post by:
I've tried to research this problem, and I haven't been able to find any references to it. Probably because I shouldn't be doing it, but it was working, and now it's not. I'm trying to develop a small application to run on our intranet. I have a lot of old knowledge, and not a lot off access to new knowledge, so I'm shooting from the hip and fumbling. I have a small Access database that I'm using as a back end for some ..ASP pages. ...
1
1750
by: kkrizl | last post by:
I've tried to research this problem, and I haven't been able to find any references to it. Probably because I shouldn't be doing it, but it was working, and now it's not. I'm trying to develop a small application to run on our intranet. I have a lot of old knowledge, and not a lot off access to new knowledge, so I'm shooting from the hip and fumbling. I have a small Access database that I'm using as a back end for some ..ASP pages. ...
1
1219
by: Beany | last post by:
Firstly whos CATALYST??? i just want to ask a simple question............. im a recent Access user........ and have only come across problems relating to Forms, tables and simple reports. I would like to ask you about Queries and Macros....(ive never used before) what can you do with Queries and Macros? what are they mainly used for?
20
2201
by: timmg | last post by:
You know, I've had so much fun reading the thread on lookup field's subservience to the Dark One that I thought I'd provoke another, ah, polite discussion on the topic of Macros. I've always been of the opinion that the only reason Access even has macros is that when MS bought the application back in '92 (prior to that "Access" was MS's telecom tool) Lotus was developing its DB product Approach. Approach had macros, which was supposed...
0
8674
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
8603
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,...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
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
8861
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
7725
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
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
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 we have to send another system
3
2001
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.