473,401 Members | 2,146 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,401 software developers and data experts.

Reports with percentage

Hello to all,
Access 2000
I have 2 fields on my report and I want to know the percentage of both
fields. I tried something like this and it gives me ERROR in the
SalesPercentage textbox,

txtSalesPercentage
controlSource = [totalsales] / [numberofsales]

Example

Dept TotalSales NumberofSales
SalesPercentage
101 231 5
???

Dept TotalSales NumberofSales
SalesPercentage
1092 231 5
???

Dept TotalSales NumberofSales
SalesPercentage
234 231 5
???

thanks for any help.
lenny

Nov 13 '05 #1
2 3451
KEVIN97810 wrote:
Hello to all,
Access 2000
I have 2 fields on my report and I want to know the percentage of both
fields. I tried something like this and it gives me ERROR in the
SalesPercentage textbox,

txtSalesPercentage
controlSource = [totalsales] / [numberofsales]
Is it
controlSource = [totalsales] / [numberofsales]
Or
controlSource = =[totalsales] / [numberofsales]

The first character in the control source should be an equal sign.

Example

Dept TotalSales NumberofSales
SalesPercentage
101 231 5
???

Dept TotalSales NumberofSales
SalesPercentage
1092 231 5
???

Dept TotalSales NumberofSales
SalesPercentage
234 231 5
???

thanks for any help.
lenny

Nov 13 '05 #2
ke********@aol.com (KEVIN97810) wrote in message news:<20***************************@mb-m26.aol.com>...
Hello to all,
Access 2000
I have 2 fields on my report and I want to know the percentage of both
fields. I tried something like this and it gives me ERROR in the
SalesPercentage textbox,

txtSalesPercentage
controlSource = [totalsales] / [numberofsales]

Example

Dept TotalSales NumberofSales
SalesPercentage
101 231 5
???

Dept TotalSales NumberofSales
SalesPercentage
1092 231 5
???

Dept TotalSales NumberofSales
SalesPercentage
234 231 5
???

thanks for any help.
lenny


Lenny,

I suppose the problem is caused by the datatypes you tried to display
in the report. Percentages do need a datatype like floating-point. If
calculated in a SQL-statement it can be necessary to convert at least
one of the fields to double cdbl(totalsales) to get a useful datatype
that can be formatted as percentage by the reporter.

Marc
Nov 13 '05 #3

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

Similar topics

2
by: cjay85 | last post by:
I wish to direct reports that I have created in Access to Excel enabling me to produce a graphical output from Excel. The report is a simple query regarding responses to a letter mailing. There...
3
by: Brian Henry | last post by:
Is there any way to get the status of a report being generated by the crystal reports viewer control? I have a report that takes up to 10 minutes to run and it looks like it's just jamed while this...
0
by: fake ID | last post by:
Since you can't search for these symbols used in asp.net "<%#" or '<%=' I thought i'd post this to make things a little easier to find. Potential search word combinations: -lessthan Percentage...
5
by: James Conrad StJohn Foreman | last post by:
Have found http://www-128.ibm.com/developerworks/db2/library/techarticle/lyle/0110lyle.html which is quite helpful, but doesn't quite tell me what I want. I have a table, advertising_spend with...
3
by: ye2127 | last post by:
Hi, I have a report called 'schools' This report lists the percentage of schools performing a certain action In the 'schools' report I have a subreport which lists...
4
by: Renata | last post by:
Hi my name is Renata and I mainly work on Crystal reports and Access data reports. I have a question. I am trying to create a group on a percentage formula and sort in descending order. I actually...
12
OuTCasT
by: OuTCasT | last post by:
I am trying to write a stock report using data from 2 tables, products table and invoice table. how it works is, everytime something is purchased that info is saved in the invoice table. now i...
0
by: Aswanth | last post by:
I'm Working with SSRS-2005 Reports in C# Web Applications.. I'm having One Doubt regarding Division.. In Chart Control (Pie-Chart Type) (Properties--> Data--> Values--> (Select Edit)-->...
5
by: Aswanth | last post by:
I'm Using Asp.Net with C# & Working with SSRS 2005 for Generating Reports.. The Following Expression I'm using in Reports to Show the Percentage of Particular Items in 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
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
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
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,...
0
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...
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...
0
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,...
0
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...

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.