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

#error in form footer sum

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 its record source.

One of the fields is a number field (format - double). That field is
called SysAffValueAmt.

In the form footer is a text box with the control source:

=Sum([SysAffValueAmt])

I have tried every other permutation of possible values to get this to
work but no joy. Anyone know what i'm doing wrong?

Thanks,

Rob.

Nov 13 '05 #1
6 13484
"dkintheuk" <rm*******@firenet.uk.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
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 its record source.

One of the fields is a number field (format - double). That field is
called SysAffValueAmt.

In the form footer is a text box with the control source:

=Sum([SysAffValueAmt])

I have tried every other permutation of possible values to get this to
work but no joy. Anyone know what i'm doing wrong?

Thanks,

Rob.

Try naming the textboxes differently to the fields, eg
txtSysAffValueAmt is bound to SysAffValueAmt
txtSysAffValueAmtTotal is bound to =Sum([SysAffValueAmt])

Allowing Access to give the controls the same names as the fields to which
they are bound, can cause it to get its knickers in a twist in certain
situations.

Nov 13 '05 #2
jv
First, make sure that SysAffValueAmt is a field from the rform's ecord
source and not a calculated control on the form.

Secondly, if you a using an ADP then make sure then make sure that the
record source of the form is a saved view and not an SQL statement.
This scenario has given me grieve in the past.

Good luck.

Julie

Nov 13 '05 #3
Hmmm good plan in principle.

I changed the name of the SysAffValueAmt box from that to
txtSysAffValueAmt as menioned.

The Total box AUTOMATICALLY changed to be =Sum([txtSysAffValueAmt]) -
wierd in itself and still gave the error.

I then manually changed the sum to be as described in your post.

It still gives the same error... Damn it! this is driving me mad...

If i just make the texbox in the footer have the same field value, it
correctly shows the field value for the record i have selected in the
contiuous form but as soon as i wrap it in sum() it fails.

Any other good ideas?

Nov 13 '05 #4
Good call jv, unfortunately the the field a field in the forms record
source (as the record source is just a table with that field included).

Also, not using ADP so no chance of that screwing things up...

Argh... just recreated a brand new form, just for this table exactly as
before and now it works... sorry for bothering you all. Not sure what
was different...

Rob.

Nov 13 '05 #5

"dkintheuk" <rm*******@firenet.uk.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hmmm good plan in principle.

I changed the name of the SysAffValueAmt box from that to
txtSysAffValueAmt as menioned.

The Total box AUTOMATICALLY changed to be =Sum([txtSysAffValueAmt]) -
wierd in itself and still gave the error.

I then manually changed the sum to be as described in your post.

It still gives the same error... Damn it! this is driving me mad...

If i just make the texbox in the footer have the same field value, it
correctly shows the field value for the record i have selected in the
contiuous form but as soon as i wrap it in sum() it fails.

Any other good ideas?

I think the auto-correcting that you saw is down to a setting
Tools>Options>General Tab - Name Autocorrect. You could switch this off.
So the two textboxes and the field all have different names and it is still
playing up? Obviously, what you are attempting is pretty straight-forward
stuff, so I'm trying to think of a simple reason it might fail. What about
the field is a text field and one of the entries can't be converted to a
number?
Perhaps as a double check, create a new table tblAmount with 2 fields ID and
Amount. Create a continuous form with textboxes txtID, txtAmount and a
textbox in the footer txtTotal which =Sum([Amount]). Does this tiny sample
not work?
Nov 13 '05 #6
thanks brian - as you can see i sorted it by starting again... i've
turned off the autocorrect function as it is not helping much here and
i never used to have it in the past...

so it works but i can't for the life of me see why it didn't - i shall
update the NG if i ever find out why.

Rob.

Nov 13 '05 #7

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

Similar topics

9
by: torbs | last post by:
Hi I am creating a page for stretchfilm. In this page you can chose between a short medium and long version of the film at any point in the film. It is in norwegian, but just press play. URL:...
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....
0
by: news.microsoft.com | last post by:
I am going crazy trying to figure this out, and I am wondering if this is a bug in the ASP.Net implementation. My situation: I have an ASPX page with 2 different modes: *Mode 1: Datagrid...
0
by: Chris S | last post by:
I am going crazy trying to figure this out, and I am wondering if this is a bug in the ASP.Net 1.1 implementation. My situation: I have an ASPX page with 2 different modes: *Mode 1:...
8
by: =?Utf-8?B?Q2hyaXMgSGFsY3Jvdw==?= | last post by:
Hi there I've successfully added some .NET validation controls to a page (using <asp:RequiredFieldValidator ...), however when I try to set the 'display' property to 'dynamic', my page then...
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...
1
anfetienne
by: anfetienne | last post by:
i take information from a database and then have the collected values entered into a form with hidden fields. <input type="hidden" name="returnURL" id="returnURL" value="<?php print...
3
by: pinko1204 | last post by:
My Update function cannot successful update to sql table even don't have any error. Please help to check .....thx PHP1 <?php require_once 'header.php'; ?> <style type="text/css"> <!--
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...

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.