473,413 Members | 1,829 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,413 software developers and data experts.

#Error-in Print Preview of report, Report View is alright

didajosh
Hi,
I am working on a accounting report.it looks like
-------------------------------------------------------------------------------------------
Group code (group by)
Org Code(group by)

Account---Acct.Desc.---2009-2010Budget---Nov2009Budget---Nov2009Actual
-------------------------------------------------------------------------------------------
The 3rd,4th,5th column headings in this report depend on the two parameters Fiscal year & Posting period supplied by the user.

3rdcolumn:If user supplies Fiscal Year 2009, the 3rd column will be 2008-2009.

Rest of the columns depend on the posting period the user provides, i.e. for July posting period is 01, for August posting period is 02...and so forth for June its 12.

I tried two things:
1. Added a text box and in its control source wrote the following expression for the fiscal year column.:
Expand|Select|Wrap|Line Numbers
  1. =(CInt([FSYR_CODE])-1) & "-" & [FSYR_CODE]
And if condition for the posting period:
Expand|Select|Wrap|Line Numbers
  1. =IIf([PostingPeriod]='01',"July",IIf([PostingPeriod]='02',"Aug",IIf([PostingPeriod]='03',"Sep",IIf([PostingPeriod]='04',"Oct",IIf([PostingPeriod]='05',"Nov",IIf([PostingPeriod]='06',"Dec",IIf([PostingPeriod]='07',"Jan",IIf([PostingPeriod]='08',"Feb",IIf([PostingPeriod]='09',"Mar",IIf([PostingPeriod]='10',"Apr",IIf([PostingPeriod]='11',"May","Jun"))))))))))) & "-" & (CInt([FSYR_CODE])-1)
  2.  
This looks good in the report view, but when I view Print Preview ,these fields show "#Error".
I also edited the Sandbox setting , but it did not help.

2. Then I thought I will add these fields in the report's query. It worked fine, till I added sorting to the report. The moment I try to sort data , these fields vanish from the report, no matter what the view is.

Please help.
Regards,
Dipali
Apr 27 '10 #1
1 2626
I got a solution for this.
My bad, the field Fiscal Year, had a lot of issues, and that was causing all the trouble. I fixed it and the report is working fine.
Apr 28 '10 #2

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

Similar topics

3
by: Andrew Luke | last post by:
Hi all you C++ guru's! I'm 'very, very' new to C++ and I'm having a little trouble configuring my VS environment I think - when I try and compile some sample code I'm getting the following...
9
by: Mairhtin O'Feannag | last post by:
Hello, We have two machines we wish to use DPF. They are both RH ES 2.1, with DB2 8.2. I read the documentation CAREFULLY, and added the following line to my db2nodes.cfg file : 1 egret 0
4
by: pshindle | last post by:
DB2 Team - I just downloaded and unzipped the new Fixpack 9 for DB2 ESE V8 for Windows (FP9_WR21350_ESE.exe). I then burned the unzipped Fixpack files to a CD. I proceded to install this...
1
by: Minh | last post by:
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't get any project with STL includes to compile even if I create a new empty project (and added #include <string>). It gave me...
1
by: Carlos Kim via DotNetMonster.com | last post by:
Compiler Error Message: CS1026: ) expected Source Error: Line 12: <body MS_POSITIONING="GridLayout"> Line 13: <form id="Form1" method="post" runat="server"> Line 14:...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
2
by: Nick | last post by:
I'm learning C++ and ran into a compile error using Visual C++ 2005 Express on the following example program (located at http://www.cplusplus.com/doc/tutorial/templates.html): // template...
1
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows. Error Message ----------------------- ...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
2
by: khalidanwar123 | last post by:
i am getting the following error while updating a clob field. ERROR java.sql.SQLException: Data size bigger than max size forthis type: 4003 19:28:27,499 ERROR at...
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
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...
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...
0
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...

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.