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

Very Strange Problem/ Exporting Reports

119 100+
I have created reports with calculated fields & added three buttons on each report (export to excel, rtf, pdf, html). Everything seemed to work very fine but unfortunately I am facing very weird problem.

There is a problem with the calculated (or concatenated) fields when exporting the report to Excel, RTF or HTML while there is no problem with PDF. The funny thing is that I face no problem when I export the report using the button found in the ribbon under external data!!! I even tried to export using DoCmd.Runcommand (acCmdExportExcel), and logically this should give the same result as the export to excel button in access but unfortunately it doesn’t!! and the calculated fields still have a problem (the first two rows are ok)


Example:
BankA BankB TotalBanks (Equal BankA+BankB)
5 //////// 15 //////// 20
5 //////// 10 //////// 15
10 /////// 12 //////// 22
15 /////// 2 //////// 22
20 ////// 5 //////// 22
30 ////// 3 //////// 22
1 //////// 1 //////// 22 and so on

Initially I used this and the output is the same DoCmd.OutputTo acReport, "Name", acFormatXLS, , True

Any Help is appreciated and thanks in advance for taking time to go over my issue

Regards,
Ali
Aug 21 '10 #1

✓ answered by liimra

Dear All,

First, Sorry for the mistake I should have stated 4 buttons instead of 3.

Second, I expected a faster interaction but this how it usually goes :).

Anyways, just to clear the air as some other people might face this problem --> a simple solution is to make the calculations in the Query and not in the report itself. But honestly, I want to share the strange thing I was facing with someone else --> just to share than getting a solution and really try it; it is funny!! if you use the built in button to export it has no problems and when you use DoCmd.Runcommand (acCmdExportExcel) it gives problems really funny unless I am missing something in there - both are the same.

Best Regards,
Ali

1 3423
liimra
119 100+
Dear All,

First, Sorry for the mistake I should have stated 4 buttons instead of 3.

Second, I expected a faster interaction but this how it usually goes :).

Anyways, just to clear the air as some other people might face this problem --> a simple solution is to make the calculations in the Query and not in the report itself. But honestly, I want to share the strange thing I was facing with someone else --> just to share than getting a solution and really try it; it is funny!! if you use the built in button to export it has no problems and when you use DoCmd.Runcommand (acCmdExportExcel) it gives problems really funny unless I am missing something in there - both are the same.

Best Regards,
Ali
Aug 21 '10 #2

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

Similar topics

3
by: Shelly | last post by:
I have come across a strange problem. I am setting up a registration screen with username, password, confirm password, and a couple of other things. The submit button is named "Submit". The...
0
by: john | last post by:
Hi,All Gurus: It is kind of complicated, please bear with me and let me know if you have any questions. Thanks a lot in advance. John I have a csharp method, using emit to dynamically generate...
2
by: demetrius | last post by:
I have encounter what I think is the strangest bug I have ever seen and was wondering if anyone else has ever experienced anything similar or might know the cause of this problem. I have...
6
by: leonecla | last post by:
Hi everybody, I'm facing a very very strange problem with a very very simple C program... My goal should be to write to a binary file some numbers (integers), each one represented as a sequence...
3
by: Trapulo | last post by:
I've two copy af the same asp.net application. The application enter on sql server, working with two separate databases (on the same sql server instance, of course). The connection is made with...
14
by: Lars Netzel | last post by:
A little background: I use three Datagrids that are in a child parent relation. I Use Negative Autoincrement on the the DataTables and that's workning nice. My problem is when I Update these...
6
by: Chris Ashley | last post by:
I have been tearing my hair out (or indeed, what's left of it) all day with this one. I'm not sure if it's a .NET issue, a server issue or anything else and would appreciate any guidance. ...
10
by: conor.robinson | last post by:
The Problem (very basic, but strange): I have a list holding a population of objects, each object has 5 vars and appropriate funtions to get or modify the vars. When objects in the list have...
6
by: Gaijinco | last post by:
I was trying to solve: acm.uva.es/p/v101/10191.html I did this code: #include <iostream> #include <fstream> #include <string> #include <vector> #include <algorithm> #include <cctype>
1
by: Larax | last post by:
Alright, so here's the problem. I define a global variable in my script and then add methods/properties to it. Everything works great, no error in Javascript Console. But when I refresh site,...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...

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.