473,473 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Create 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 1620
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****@radsolutions.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
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: ...
0
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:...
5
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
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...
6
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...
2
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...
15
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...
2
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...
0
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. ...
6
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...
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
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
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.