473,698 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ


Hi, im tryng to display some data in a report.
The data im displaying is corect,but it contains calculating totals as
well. The totals that r displayng r incorrect.Plaes e hav a look at the
code below to see if u cn spot anythng im doing wrong.

<% If Method <> "" then %>
<% If Method <> rstMain("Metode ") then
MTel = 0%>
<td colspan="2"><fo nt face="Tahoma" size="-2"
color="Black">< B><I>Total for <%= Method %></I></B></font></td>
<td align="right">< font face="Tahoma" size="-2" color="Black">< B><%=
MTel %>fj</B></font></td>
<% End If
End If %>
<td><font face="Tahoma" size="-2" color="Black">< %=
rstMain("Metode ") %></font></td>
<td><font face="Tahoma" size="-2" color="Black">< %=
rstMain("Onderw erp") %></font></td>
<% If rstMain("Opmerk ing") <> "" Then %>
<td><font face="Tahoma" size="-2" color="Black">< %=
rstMain("Opmerk ing") %></font></td>
<% Else %>
<td><font face="Tahoma" size="-2" color="Black">& nbsp;</font></td>
<% End If %>
<% MTel = MTel + 1 %>
<%Method = rstmain("Metode ")
Total1 = Total1 + 1 %>
<%rstMain.Moven ext
Wend %>
<td colspan="2"><fo nt face="Tahoma" size="-2"
color="Black">< B><I>Total for <%= Method %></I></B></font></td>
<td align="right">< font face="Tahoma" size="-2" color="Black">< B><%=
MTel %></B></font></td>
<td colspan="2"><fo nt face="Tahoma" size="-2"
color="Black">< B><I>Total for Contacts for the
<td align="right">< font face="Tahoma" size="-2" color="Black">< B><%=
Total1 %></B></font></td>
<% End If %>

The total which is diaplyng wrong is the 1st MTel.Of which is contained
in an if statement which should nt excecute because the condition does
nt fulfill,bt it is excecuting.

Please help!

Jun 12 '06 #1
0 986

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

Similar topics

by: shovan | last post by:
I am creating a customized Purchase order report using asp. I have developed the reoprt as it is displaying the amount against a sales rep within a specific date range.now values are dispalaying for different months which is dispalying as a column header.I want to break the values weekly ,querterly etc...can u provide idea or code?
by: Pioneer | last post by:
HI, We are using BI software on Datawarehouse for reporting purpose. In that we had some performance realted issues. So the only solution to that was cerating indexes as per the requirements. But as it involves DBA, its tedious process. So if we create a view of a SCHEMA to which we are refering in reporting, and then create index on that view, it will improve the performance significantly. Your thoughts.
by: | last post by:
Hi, I am loading some crystal reports in a method similar to this (see below). And set the cursor to waiting while the reoprt is loaded, run and shown. BUT while the report is running the cursor changes back to default. I have tested setting it back to waiting after the call to run the report, - and it does get set. Has anyone else seen this wierd crystal bug I am also putting a message in the status bar - and this hold true the
by: Ahmed Marghani | last post by:
Hi Dear i am using Crystal Report Viewer control in ASP.NET to display crystal reoprt under windows 2000 professional. the control work well but i can't see the charts it the control any one have a solution for that thanks
by: spammy | last post by:
Hi all, Im having difficulty serving synamically generated PDFs to clients via asp.net. Im using crystal reports to generate them. In my page load I have the following: private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here try
by: mjf | last post by:
I need to come up with a tool to compare the table definition and/or its data before and after some modification to the DDL or some tests (that change the data). Does DB2 come with such a tool, or do I need to write my own? Thanks.
by: himadri das | last post by:
i have a document in MS word. I upload the file in the mysql database using php.but i failed to download the file using php, what is the process of downloading file using php from mysql database
by: ditch | last post by:
Hi I am using the following code, and basically what I want it to do is this: User selects a Business Unit from drop down list, they then click on a button and it creates a report based on the the business unit selected from the drop down list. It converts the reoprt to RTF and then fires up a new email, but it picks the first change champion form the table and not the query from the drop down list, any ideas Dim stDocName As String...
by: access baby | last post by:
i have a huge database based on date and time need to create different report we need to measure our work processes how many order received , order cancelled, completed and count of items completed on or before time. chart or pivot report how do i do that. Please help.
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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.