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

#Error in Form Footer Total

jv
Hello,
I have a continuous form that has a textbox named InvoiceAmount. This
textbox is not a calculated field. It's control souce is a field also
named InvoiceAmount in the tblInvoices table. In the form footer, I
have a textbox name txtBatchTotal which should show the sum of all
invoices in the batch. The control source of txtBatchTotal is
=Sum([InvoiceAmount])

This gives me a #Error in the txtBatchTotal field.

I should mention that I'm using Access 2002 ADP with SQL 2000. Please
let me know if you have any suggestions.

Thanks.

Julie Vazquez

Nov 13 '05 #1
8 4254
On 29 Dec 2004 16:01:11 -0800, "jv" <ju***********@hotmail.com> wrote:

Check the NorthwindCS sample application, the Orders form. Its subform
has a similar setup as what you're describing. Compare carefully and
you should find the root cause.
My guess: a typo in the expression.

-Tom.

Hello,
I have a continuous form that has a textbox named InvoiceAmount. This
textbox is not a calculated field. It's control souce is a field also
named InvoiceAmount in the tblInvoices table. In the form footer, I
have a textbox name txtBatchTotal which should show the sum of all
invoices in the batch. The control source of txtBatchTotal is
=Sum([InvoiceAmount])

This gives me a #Error in the txtBatchTotal field.

I should mention that I'm using Access 2002 ADP with SQL 2000. Please
let me know if you have any suggestions.

Thanks.

Julie Vazquez


Nov 13 '05 #2
jv
I've checked the spelling very carefully about 10 times and have
deleted the control and recreated from scratch. The expression works
with =[InvoiceAmount], but return #Error when I put Sum() or Max()
around it like in =Sum([InvoiceAmount]). It is very strange.

Nov 13 '05 #3
jv
I also found that when my form's record source is simply tblInvoices,
=Sum([InvoiceAmount]) in the form footer works fine. However, when the
form's records source is a joined query, that's when I get #error for
=Sum([InvoiceAmount]) and =Sum([tblInvoices].[InvoiceAmount]).
Does anyone know why this may be?

thanks.

Nov 13 '05 #4
jv wrote:
I've checked the spelling very carefully about 10 times and have
deleted the control and recreated from scratch. The expression works
with =[InvoiceAmount], but return #Error when I put Sum() or Max()
around it like in =Sum([InvoiceAmount]). It is very strange.


Are you sure you put this control in the form footer and not the page footer?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #5
jv
I finally tried saving my form's record source Select statement as a
view and used that view as the record source. Somehow that solved my
problem. I have no idea why.....

Nov 13 '05 #6
On 30 Dec 2004 08:38:13 -0800, "jv" <ju***********@hotmail.com> wrote:

I've noticed this too: Access ADP really likes views.
-Tom.
I finally tried saving my form's record source Select statement as a
view and used that view as the record source. Somehow that solved my
problem. I have no idea why.....


Nov 13 '05 #7
Tom van Stiphout wrote:
On 30 Dec 2004 08:38:13 -0800, "jv" <ju***********@hotmail.com> wrote:

I've noticed this too: Access ADP really likes views.
-Tom.


Yes it does ...
except on anniversaries of major battles of either the Punic Wars or the
Wars of the Roses
or when the distance (km) of the earth's equator from the center of the
planet Mars is a multiple of 10000
or when you have a deadline to meet and it's ... tomorrow!

On such occasions you can pretty well bet that your ADP will NOT like
Views, it will like a SPROC, or a table returning UDF, or a T-SQL script
string, and that you may require several hours to discover just which of
these, if any, it does like, and how to implement its use in precisely
the manner that the Access ADP wants.

Arggggggggggghhhhhhhhhhh! The time that Access saved me from 1992(?) to
2002 has been entirely lost in the past two years coping with Access ADP
Arcane Anomalies ... never AGAIN!

(...first rant of 2005!)

Nov 13 '05 #8
jv
I thought that changing the form's record source to a view solved my
problem, but it didn't. The form total is OK until I need to refresh
or requery the form. At which point, the #error returns.

Does anyone know what's going on and how I can get rid of this problem?
Thanks.

Nov 13 '05 #9

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

Similar topics

5
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can...
6
by: DS | last post by:
I have a continous form that records payments. I' starting out with a bill of lets say $10.00. What I want to happen is that when I apply a payment a new record is made. In that new record I...
6
by: dkintheuk | last post by:
Hi all, I'm getting an error when i put a sum in the form footer of a continuous form. I have followed the NWind database exactly (i hope). The conituous form uses a single table name as...
2
by: | last post by:
I have gotten the following error in trying to get totals to come out on a footer. Server Error in '/test' Application....
2
by: Chippy | last post by:
I am having trouble working out how to update a field on an open form with a calculation based upon calculations from other tables! For example, I have 3 tables: Diary Diary_ID: autonum,...
1
by: Chippy | last post by:
I am having trouble working out how to update a field on an open form with a calculation based upon calculations from other tables! For example, I have 3 tables: Diary Diary_ID: autonum,...
2
by: post | last post by:
Sorry that this is rather basic. But I have tried the various suggestions given in this group and cannot get them to work. I have a main form, for simplicity called "Main". On it are two...
3
by: minchazo | last post by:
I'm trying to create a Total field in the footer of a subform. My initial form uses three boxes to narrow down what will be displayed in the subform. My subform is created off of the query...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
3
by: graphicssl | last post by:
Okay, so first of all, I'm a designer first and a light coder second (I'm only really trained with HTML and CSS). So I apologize for having to post about something that's probably super-trivial! ...
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: 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
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
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: 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
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,...

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.