473,513 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query Result don't display in report

3 New Member
I have a query to calculate the percentage. Its working fine and displaying the desired result in the Datasheet View but when I am trying to put that result in report using text box, it shows 0. Now the strange thing is I have 9 text box with different query results which also shows there data in datasheet view but when it comes to report only 1 text box shows result but other shows 0.

Please help. I googled and found nothing. Every setting and formatting checked various times.
Nov 22 '19 #1
6 1741
twinnyfo
3,653 Recognized Expert Moderator Specialist
axmohammad1,

Welcome to Bytes!

Do you have 9 different queries that have these results or is there on query with 9 different values. If it is the former, you need to find a way to JOIN those queries into one recordset that the report can use for its Record Source.

More information would be helpful in this instance.

Thanks!
Nov 22 '19 #2
axmohammad1
3 New Member
Thanks for your reply.

All 9 queries has different values and different results fetching data from the same table.

Attached is the image of query result in datasheet view and the report view.
[IMG]https://ibb.co/kQG8bks
, https://ibb.co/GCwQ4CF[/IMG]
Nov 22 '19 #3
twinnyfo
3,653 Recognized Expert Moderator Specialist
ax,

I can't see images that are hosted elsewhere. If you could please attach the image (use the Advanced button).

However, I think the issue is that you have 9 queries. A report can only have one record source--unless you have nine separate subreports, each of which would have a record source of the individual query. This is not unheard of. Depending on how your data is being presented, it may be a very reasonable structure. Again, I would need to know more about the data and what you are trying to do to guide the structural discussion.
Nov 22 '19 #4
axmohammad1
3 New Member
Thanks for letting me know about advanced button. Screenshot attached again with record source list.

Yes, I have 9 different queries and 9 different record source. Each text box is assigned with different record source. I don't know why its not getting any data from record source.

Please advise.
Attached Images
File Type: jpg Report field comes up 0.JPG (27.5 KB, 54 views)
File Type: jpg Query Result.JPG (26.3 KB, 54 views)
File Type: jpg record source.JPG (8.7 KB, 49 views)
Nov 22 '19 #5
NeoPa
32,558 Recognized Expert Moderator MVP
Is this problem as simple as the fact that percentages of less than 100 are actually values less than 1? When displayed in a Control that isn't set to format as a percentage - and especially when displayed as an integer - will simply show 0.
Nov 23 '19 #6
Rabbit
12,516 Recognized Expert Moderator MVP
Your report is showing the first record of the data. As it should. If there are multiple records, they will be displayed in the other pages of the report. Unless you put the fields in the report header, in which case only the first row will be displayed.

This is all working as it should. Rather, it looks like you misunderstand how a report works.

If you need to display all the records as a singular record, then you need to aggregate your data into a single record.
Nov 25 '19 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2407
by: Lin Ma | last post by:
Greetings, In my search application, user can type a number to search. I use LIKE in my query. If a query result generates over 10,000 recordsets, it may several minutes to run. Is there a way to only query certain recordset at a time?
11
13724
by: Surajit Laha | last post by:
I am firing a query like: SELECT TaskName, StartDate FROMTasks WHERE StartDate >= '01-Aug-2003' Now the result comes as: TaskName StartDate -------------------------- Task1 01-Aug-2003
1
1988
by: Craig M | last post by:
Hi, I've created a query that has all calculations needed, and made a report based on this. I have then made a form based on this query. What I would like to do is print only the current record on the form. This is because the report is a "letter" and I only want 1 record per page.
0
1072
by: Matthew Louden | last post by:
I am new to Crystal Report at all. I wonder if we can transform datagrid result to crystal report directly?? What I want is that the datagrid shows the result, and user can make a report from that. please advise on how to get started. Thanks!!
1
2064
by: Maarten van der Cammen | last post by:
Hi, In a table I have two numeric fields (e.g. FieldA and FieldB). Both fields have double precicion (field size "double"), Format "Fixed" and Decimal places "3" since I want to calculate with at least 3 digits precision (e.g. values might show as 0.123). In a select query, I divide FieldA by FieldB. All results show properly. Then I...
2
3295
by: reeba | last post by:
I want to store the query result, in an servlet, into an xml file and display the contents of the xml file on the browser...... my code is as follows: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException{ // List dataList = new ArrayList();...
25
7373
by: NDayave | last post by:
How do, I have a form that outputs addresses in a format that can be printed on to 3x7 label paper for envelopes. What I want is a way to enter blank (or " ") rows to the query result where the user specifies so no label is printed in that particular place. I am aware of the problems of inserting blank records to tables. I say this as the...
2
3136
benchpolo
by: benchpolo | last post by:
SELECT a.claimno ,a.diagrefno ,a.diag ,a.diagdesc ,b.diagrefno as diagrefno2 ,b.diag as diag2 ,b.diagdesc as diagdesc2 ,c.diagrefno as diagrefno3 ,c.diag as diag3 ,c.diagdesc as diagdesc3
1
2069
by: urfriend | last post by:
Hi, I have a multiple search form, and when I use it, it displays the result according to the criteria given in that form. However, the result is shown in datasheet view as a query result. How can I automate the output to show on a form instead of a query in datasheet view??
0
7270
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...
0
7178
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...
1
7125
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...
0
7543
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...
0
5703
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...
1
5102
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...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
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
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.