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

Home Posts Topics Members FAQ

#Error issue

I have an application that produces examination scores. Candidates have a
choice of sitting 1 of 2 subjects or both. I have produced a query that
gives all the results for candidates that sat subject A. This contains some
fairly complex calculations. My problem is that I need to produce a report
that shows the scores for all candidates regardless of whether they sat the
exam for subject A. This should be fairly easy to produce: simply create a
query that left joins the full candidate list to the query that shows the
results for those candidates that sat subject A. This should therefore have
nulls in all columns where a candidate did not attempt the subject.

For the most part this works fine, but for some bizarre reason some columns
show #Error rather than the null result expected. These errors are causing
major headaches. Does anyone know what causes this and what I can do to get
around it?


Nov 13 '05 #1
1 1630
Here are some of the causes of #Error on a report.

1. Control Name
Make sure the name of the control is not the same as the name of a field.
Access gets confused if the control name matches a field name, but it is
bound to something else.

2. Calculation
There could be an error in the calculation itself that causes the error. For
example, dividing by zero, an incomplete argument for a function such as
DLookup() when the value is Null, or an attempt to use a function that does
not accept Nulls, such as CDbl().

3. Inappropriate Format
If you format a control for a Number or Date, and the value it contains does
not match the format, you may see #Error.

4. Referring to non-existent controls
If the report returns no records at all, there are no controls for the
detail section, and so attempting to refer to them in any way (such as for
another calculation) generates an error. You can use IIf() and test the
HasData property of the report to avoid this condition.

5. Cascading Errors
Once Access is unable to calculate an expression, it gives up and shows
#Error for the remaining calculated controls. This does not mean that all of
them have an error--but one of them does. The simplest way to track them
down might be to make a copy of the report and begin eliminating the
calculated controls until you find the one that triggers the error.

HTH.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Andrew Chanter" <he****@radsolu tions.com.au> wrote in message
news:05******** ******@news-server.bigpond. net.au...
I have an application that produces examination scores. Candidates have a
choice of sitting 1 of 2 subjects or both. I have produced a query that
gives all the results for candidates that sat subject A. This contains
some fairly complex calculations. My problem is that I need to produce a
report that shows the scores for all candidates regardless of whether they
sat the exam for subject A. This should be fairly easy to produce: simply
create a query that left joins the full candidate list to the query that
shows the results for those candidates that sat subject A. This should
therefore have nulls in all columns where a candidate did not attempt the
subject.

For the most part this works fine, but for some bizarre reason some
columns show #Error rather than the null result expected. These errors
are causing major headaches. Does anyone know what causes this and what I
can do to get around it?

Nov 13 '05 #2

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

Similar topics

8
4062
by: Steve | last post by:
I have several pairs of synchronized subforms in an application. I have a Delete button for each pair that uses the following code or similar to delete a record in the second subform: DoCmd.SetWarnings False DoCmd.RunCommand acCmdDeleteRecord DoCmd.SetWarnings True End If ExitHere: Me!SubName.SetFocus
0
1481
by: Megan | last post by:
Hi Everybody- I know that this is a really, really long post, but I wanted to try to give you as much background as possible. So here's a quick overview of the issues I'm asking for help with: 1.) I'm trying to create a many to many relationship, and I get the following Error when I try to enforce referential integrity.
5
2785
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE ------------------------------------------------------------------------------- -
1
3157
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on Windows Server 2003 Enterprise Edition Only. This works on Windows 2000, Windows 2003 Web Edition and
6
3504
by: AlanS | last post by:
I have used Visual Studio for about 8 months. I have developed some ASP solutions. I had to get on with some other things and have not worked with ASP.NET for a couple months. In the meantime, I have upgraded to .NET Framework 200 V1.1. Over the week end I had to go back to work on a project that needed some changes. I get the following error when I try to open an existing project or create a new one. I have XP Professional An error...
2
390
by: Terry Holland | last post by:
I posted a follow up to an earlier post but did not receive response so here it is again (with original post and response) > This could be because you are running the index service over this web > application. try to stop indexing this application (from IIS management > console, clear "Index this resource") or stop the index service to test if > you still get error or not. I removed this option but still get the error. The error...
15
5341
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the path of the uploaded image, and resize it with the provided dimensions. My function is below. The current function is returning an error when run from the upload function: A generic error occurred in GDI+. Not sure what exactly that means. From what...
2
1419
by: Matt | last post by:
I am getting the following Error. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual...
0
3223
by: HandleX609 | last post by:
http://i103.photobucket.com/albums/m135/handlex/RandomPhotos/Buttsex_to-Korn.jpg This is the snapshot stating the event for a certain zone. http://i103.photobucket.com/albums/m135/handlex/RandomPhotos/Buttsex_to-Korn.jpg This is showing the properties of certain IPs located in the zone that is having the issue. Stemming off my "Network Issue" thread, I've decided to close it because that was the issue was found and now to find the...
6
1996
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
Hi - I have 4 webservers in my webfarm. All Win2k3 web edition. Before yesterday, none of them were service packed. I have now applied SP2 to two of them, and I'm getting a very weird MSDTC error on them now. The error occurs when I attempt a series of SQL statements wrapped in a TransactionScope(). It's executing against a different server, so this is where it's elevated to a distributed transaction.
0
9160
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, 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...
0
9029
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
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,...
0
8862
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6521
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
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();...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2331
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.