473,725 Members | 2,278 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 1878
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
2850
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
1092
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
1912
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
2806
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
1687
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
1318
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
1755
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
1223
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
2206
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
9401
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...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9116
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
8099
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...
1
6702
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
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();...
1
3228
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
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
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.