473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Report builder problem

I'm trying to create a report and am getting "Report item expressions can
only refer to fields within the current data set scope or, if inside an
aggregate, the specified data set scope."

I have a tableadaptor and a dataset and the query that fills the dataset has
a couple joins and a Union All in it. When the dataset is expanded in the
Data Sources it shows the correct fields. If I drag any of the first four
fields onto the report the report will generate just fine, but if I drag any
of the other fieds onto the report I get the build error listed above. I've
been banging my head against this for two days now, so ANY ideas are most
welcome.

Since I know that some of you will want to see the query.....

SELECT sysinfo.agencyname, clients.fname, clients.mname, clients.lname,
clients.clientno, ai.ddate, ai.witfirst, ai.witlast, ai.doctor, ai.nurse, ai.
toldparent,
ai.toldadvoca, ai.sublocatio, ai.account, ai.ttime, ai.
location, ai.nature, ai.aggfirst, ai.agglast, ai.place, ai.repobyfirs, ai.
repobylast, ai.response, ai.tpm,
ai.dnnotes, ai_injur.bodypart, ai_injur.severity,
ai_injur.injurytype, ai_injur.ai_key, ai.ddate AS Expr1
FROM sysinfo CROSS JOIN
ai_injur LEFT OUTER JOIN
ai ON ai.ai_key = ai_injur.ai_key LEFT OUTER JOIN
clients ON ai.client_key = clients.client_key
WHERE (clients.is_current = 1)
UNION ALL
SELECT sysinfo.agencyname, clients.fname, clients.mname, clients.lname,
clients.clientno, ai.ddate, ai.witfirst, ai.witlast, ai.doctor, ai.nurse, ai.
toldparent,
ai.toldadvoca, ai.sublocatio, ai.account, ai.ttime, ai.
location, ai.nature, ai.aggfirst, ai.agglast, ai.place, ai.repobyfirs, ai.
repobylast, ai.response, ai.tpm,
ai.dnnotes, 'none' AS BODYPART, 'none' AS SEVERITY,
'none' AS INJURYTYPE, ai.ai_key, ai.ddate AS Expr1
FROM sysinfo CROSS JOIN
ai LEFT OUTER JOIN
ai_injur ON ai.ai_key = ai_injur.ai_key LEFT OUTER JOIN
clients ON ai.client_key = clients.client_key
WHERE (clients.is_current = 1) AND (ai_injur.ai_key IS NULL)

--
Message posted via http://www.dotnetmonster.com
Feb 24 '06 #1
0 3489

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

Similar topics

6
by: BlackFireNova | last post by:
Using Access 2002 I am writing a report which draws data from several different tables. I can't link all the tables in a query, as some can not be related without truncating the data. I plan...
9
by: Colin McGuire | last post by:
Hi, I have an report in Microsoft Access and it displays everything in the table. One column called "DECISION" in the table has either 1,2, or 3 in it. On my report it displays 1, 2, or 3. I want...
5
by: Sami | last post by:
I can create queries and reports based on info from one table. How do I create one using information from multiple tables. What do I need to make sure the information from one table will be...
5
by: Tony Williams | last post by:
I have a table "tblmaintabs" that stores data that is collected from various companies on a quarterly basis in March, June, September and December each year (these dates are stored in a Date/time...
9
by: paul.jameson | last post by:
I have a simple Access database that stores Karaoke Songlists for my local pub. From this you are able to print out the song lists they use. Up until now, any duplicate songs that appear on say,...
2
by: Rob Dob | last post by:
Hi, I have several reports ( .rdl) that I created using report designer, how can I let the end user make modifications to the text in some of these reports. As I am unable to use Report Builder...
8
by: EddieTH | last post by:
Hello everyone, I am new to this forum so I'll give my greetings to everyone! I am using oracle forms builder and reports builder for 1 year now and I have a problem I cannot seem to be able to...
0
by: nirmaljanak | last post by:
Hello Experts, I am using Oracle Report Builder 10g for creating reports. I am saving all reports in JSP format. when I run it withing report builder it works fine. I want to enclose this JSP...
2
dlite922
by: dlite922 | last post by:
Before i spend hours coding this thing, i want to see if there's already a solution or one of you has built something close to it. Please suggest anything that may relate to any of the following ...
7
by: vamsioracle | last post by:
hi I am working with a custom report, I try to change the code as per requirement and when i click ok , it errors out and report builder closes. I tried for almost 10 times 'I says Report...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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...

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.