I usually design applications in SQL Server and Crystal Reports. I
now need to create a crystal report on an MS Access database.
I have two tables:
Services:
Date datetime
Entry text
Amount number
(should be 4 records)
Offerings:
Date datetime
Entry Text
Amount number
(should be 20 records)
In SQL Server, I would just create a union query and join the records
from Services and the records from Offerings to get one select
statement result with 24 records. For my Crystal report to work, I
don't want to have to make a table and then report off that table. I
would rather build a report on a query thereby making it dynamic.
I am fairly new to writing queries in Access and would like to know
how to do this in Access.
Thanks,
Tony 1 7769
Create a new query.
Change it to SQL View (View menu).
Key in the UNION ALL statement.
Access can't show union queries graphically, but that doesn't mean you can't
write the sql the way you wish.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"CrystalDBA " <tt******@hotma il.com> wrote in message
news:b0******** *************** ***@posting.goo gle.com... I usually design applications in SQL Server and Crystal Reports. I now need to create a crystal report on an MS Access database.
I have two tables:
Services: Date datetime Entry text Amount number (should be 4 records)
Offerings: Date datetime Entry Text Amount number (should be 20 records)
In SQL Server, I would just create a union query and join the records from Services and the records from Offerings to get one select statement result with 24 records. For my Crystal report to work, I don't want to have to make a table and then report off that table. I would rather build a report on a query thereby making it dynamic.
I am fairly new to writing queries in Access and would like to know how to do this in Access.
Thanks,
Tony This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: KENNY L. CHEN |
last post by:
Dear experts,
I have two tables in my Oracle 8i database: TEST (COL1,COl2,REC_NO)
and TEST1 (COL1,COL2,REC_NO).
Both tables are unique-indexed on (COL1,COL2,REC_NO).
I think the following SQL commands will return the same result but one
of my friends don't think so. He said "QUERY 1" will return 1 unsorted
record (ROWNUM < 2 ) first then sort the result (ORDER BY COL1 ASC,
|
by: Marek Lewczyk |
last post by:
Hello,
Currently I'm testing my app using MySQL 4.1.0 version, and I have a
strange error during execution a union query.
(SELECT IF(_DAT.pri <=> null, null, ROUND(_DAT.pri/1.22)) AS pri_net,
IF(_DAT.pri <=> null, null, ROUND(_DAT.price*1)) AS pri_gross,
_DAT.cuid, _CUR.code FROM tab1 _DAT, tab2 _CUR WHERE _DAT.eid = '6925'
AND _DAT.did = '3' AND _CUR.cuid = _DAT.cuid )
UNION
(SELECT IF(pri <=> null, null, ROUND(pri/1.22)) AS prinet,...
|
by: (Pete Cresswell) |
last post by:
I've got some SQL that works as far as returning a recordset from a series of
UNION statements.
viz:
SELECT whatever
UNION this
UNION that
UNION other
|
by: shaun palmer |
last post by:
when or Where do you use a union query ?
how can I wright sql,
tblPopulation,* tblcustomer,* one to one with
all the appropriate attributes(field).
Your help would be greatly
appreciated. Thank you.
|
by: BerkshireGuy |
last post by:
I have the following union query that works great, but I want to alter
the query to only return True (-1) for the TEST column.
Currently the test column DOES return 0 or -1. I just want the -1.
How can I place logic in this without creating another query.
Here is the union:
SELECT AgencyCode as ContactTypeID, AgencyShortName as ContactName,
| |
by: BillCo |
last post by:
I've encountered a problem while using ADO to save query objects.
Union queries created normally (via the interface) appear in adox
catelog.procedures rather than catelog.views. This is reasonably well
documented and I can live with it.
The below seems to be the only way to add queries to a database using
ADO:
Set cmd = New ADODB.Command
cmd.CommandType = adCmdText
|
by: kepston |
last post by:
I have a situation where I need to record scrap quantities for parts that we sell and parts that are supplied, in a single table. I have a UNION query that combines the part numbers successfully, allowing the user to select from a combo box without knowing whether the part is supplied or manufactured. I need to provide a DEFAULT value for cost (which, if changed later would not be wrong). To do this, I would like to pull the price from the...
|
by: rileyjane |
last post by:
Hello,
I am running a Union query in Access 2003 that combines two other queries. When I run each query individually, they open fine with no problems. But when I try to run the Union query, I get the Overflow message. I have seen in other posts that the Overflow message usually comes up when a query operation provides a result that is too large to fit in the underlying field size. But if that were the case, wouldn't I get the Overflow...
|
by: php_mysql_beginer911 |
last post by:
Hi .. hope someone will help
i am trying to figure it out why i cannot post string "union select"
every time i try to post data which content union and select ..
the page doesn't get posted and it shows error page not found on this
server
i googled and found some people use union and select to hack sites
(mysql injection)
i guess the server i am using has some kind of filter and if a post
string content "union select"
... it simply...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |