473,385 Members | 2,069 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,385 software developers and data experts.

Help with Sum function!

Hi:

I have a field on a form that is names 125POP. It is currency.

I can refer perfectly well to it in a text box when I want to add it to something as in:
=[125POP]+[Payroll]

HOWEVER

when i want to sum it, I have a problem.

=sum ([125POP]) produces an error, not only in the field involved but also all to her sum
fields on the form.

I have no idea what the issue is, but would love to get some pointers so I can sort it
out!

Thanks

John Baker
Nov 13 '05 #1
3 4485

John Baker wrote:
Hi:

I have a field on a form that is names 125POP. It is currency.

I can refer perfectly well to it in a text box when I want to add it to something as in: =[125POP]+[Payroll]

HOWEVER

when i want to sum it, I have a problem.

=sum ([125POP]) produces an error, not only in the field involved but also all to her sum fields on the form.

I have no idea what the issue is, but would love to get some pointers so I can sort it out!


are you trying to sum a single field across records (by using SUM), or
are you trying to just add up values on a form? If you're trying to
add values in controls on your form, it's like this:

=[Field]+[Field2]+[Field3]

If you're trying to add up a column (separate records) as you would a
column in Excel, then you need to use either DSUM or use a query.

Nov 13 '05 #2
I am trying to add a single field across records on the form ( its for payroll). The SUM
wotrks fine for some other fields in the same records, but there is something weird about
the 125POP field and I cant get my hands around it!.
pi********@hotmail.com wrote:

John Baker wrote:
Hi:

I have a field on a form that is names 125POP. It is currency.

I can refer perfectly well to it in a text box when I want to add it

to something as in:
=[125POP]+[Payroll]

HOWEVER

when i want to sum it, I have a problem.

=sum ([125POP]) produces an error, not only in the field involved but

also all to her sum
fields on the form.

I have no idea what the issue is, but would love to get some pointers

so I can sort it
out!


are you trying to sum a single field across records (by using SUM), or
are you trying to just add up values on a form? If you're trying to
add values in controls on your form, it's like this:

=[Field]+[Field2]+[Field3]

If you're trying to add up a column (separate records) as you would a
column in Excel, then you need to use either DSUM or use a query.


Nov 13 '05 #3
Hi John Baker,

Piet Linden is on the right track. I would add that the problem appears
to be because you probably have the form field 125POP bound to the
table/query field with the same name, 125POP. Try calling the form
field 'txt125POP' (bound to 125POP). Modify the other form fields'
references to this new name. For example,

=[txt125POP]+[Payroll]

The form fields that use the Sum function should refer to the
table/query fields and should remain:

=Sum([125POP])

Cheers,

Mike Watson
Connecting Software
via Lodovico il Moro 87
20143 Milano, Italy

John Baker wrote:
I am trying to add a single field across records on the form ( its for payroll). The SUM wotrks fine for some other fields in the same records, but there is something weird about the 125POP field and I cant get my hands around it!.
pi********@hotmail.com wrote:

John Baker wrote:
Hi:

I have a field on a form that is names 125POP. It is currency.

I can refer perfectly well to it in a text box when I want to add
itto something as in:
=[125POP]+[Payroll]

HOWEVER

when i want to sum it, I have a problem.

=sum ([125POP]) produces an error, not only in the field involved
butalso all to her sum
fields on the form.

I have no idea what the issue is, but would love to get some
pointersso I can sort it
out!


are you trying to sum a single field across records (by using SUM), orare you trying to just add up values on a form? If you're trying to
add values in controls on your form, it's like this:

=[Field]+[Field2]+[Field3]

If you're trying to add up a column (separate records) as you would acolumn in Excel, then you need to use either DSUM or use a query.


Nov 13 '05 #4

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

Similar topics

7
by: Alan Bashy | last post by:
Please, guys, In need help with this. It is due in the next week. Please, help me to implement the functions in this programm especially the first three constructor. I need them guys. Please, help...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
1
by: Michael D. Reed | last post by:
I am using the help class to display a simple help file. I generated the help file using Word and saving it as a single page Web page (.mht extension). I show the help file with the following...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
4
by: Stef Mientki | last post by:
I'm making special versions of existing functions, and now I want the help-text of the newly created function to exists of 1. an extra line from my new function 2. all the help text from the old...
22
by: Amali | last post by:
I'm newdie in c programming. this is my first project in programming. I have to write a program for a airline reservation. this is what i have done yet. but when it runs it shows the number of...
1
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: ...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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,...

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.