Hello All,
Is it possible to have two different queries using parameters on the
same report?
Thanks.
Trish 4 2268
Trish-
You're question's a little vague, but if you want the results of two
queries in one report, just make reports based on each query and insert
them into another blank report as subreports. If they're using the
same criteria, it's easiest just have the user enter the criteria into
a form and run the report that way. Otherwise, you can have the query
itself prompt for what it needs by doing something like [Enter date:].
If you're talking about combining the results of the two queries or
something, that's a little more situation-specific, and you'll have to
provide more detail.
Hope this helps.
-Josh
Trish-
You're question's a little vague, but if you want the results of two
queries in one report, just make reports based on each query and insert
them into another blank report as subreports. If they're using the
same criteria, it's easiest just have the user enter the criteria into
a form and run the report that way. Otherwise, you can have the query
itself prompt for what it needs by doing something like [Enter date:].
If you're talking about combining the results of the two queries or
something, that's a little more situation-specific, and you'll have to
provide more detail.
Hope this helps.
-Josh pc****@romehospital.org wrote: Hello All,
Is it possible to have two different queries using parameters on the same report?
Thanks.
Trish
Yes. You would then set the report's record source using code in the
report's "on open" event, something like:
If SomeCondition = True Then
Me.RecordSource = "qryQuery1"
Else
Me.RecordSource = "qryQuery2"
End If
HTH - Keith. www.keithwilby.com
Hello Josh,
I want to create two different queries, each with their own parameters,
to compile on a report.
Show table data for only 1 month:
Query 1= Between [Start Date] and [Ending Date]
and on the same report...
Show table data year-to-date
Query 2= Between [Start Date] and [Ending Date]
Is this even possible??? Thanks again!
Trish
PS...I don't have any "true" programming experience This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Geoff Berrow |
last post by:
This is puzzling.
If I run
$sql = "INSERT INTO customer
(custid,username,password,title,firstname,lastname,street,towncity,postcode,telno,mobile,email,glasses)
VALUES...
|
by: Faybert |
last post by:
Hello, and Thanks in advance for any light you might shed on my
troubles.
I'm trying to setup a series of checkboxes, or a checkboxlist to
control the results that are shown on a gridview...
|
by: Zeke Zinzul |
last post by:
Hi,
I am writing a simple graphics program to generate a Yin Yang logo. I need
to implement a flood fill routine and am trying to write a stack class in
C#. My main program is in VB.
My...
|
by: tarafinlay |
last post by:
Hi all,
I am new to access and am finding it a bit unintuitive having worked
with SQL server in the past... And I am in a bit of a hurry because my
employer wants me to crank something out which...
|
by: joebob8000 |
last post by:
This seems like a simple task, but my 6 year old roots in classic ASP
must be causing me trouble with my current problem. I am looking to
provide a search for users in which they can select...
|
by: beretta819 |
last post by:
Ok, so I apologize in advance for the wordiness of what follows... (I am not looking for someone to make this for me, but to point me in the right direction for the steps I need to take.)
I was...
|
by: pinzasso |
last post by:
The second query works fine by itself, so why doesn't it work when the first query is in front of it and the else is triggered?
still spits out the print with no errors.
<? ...
|
by: John |
last post by:
Hi
I have created a drag and drop form a single table using vs2008.
I have added several queries to the table adapter in Dataset designer. Is
there any way for binding source to use relevant...
|
by: BigMac4 |
last post by:
Ok i am going to sound like the novice i am but i am hoping that someone will take pity on me and help me out.
Here is what i am trying to acheive:
I have a report that i need to run using a...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |