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

Adding up field from a table

good day,

As i have stated before i am a newbie at this game.

I have a table "tblQSPTotals" that has 6 different QSP's on field
"QSPName" and "Project Parts". Under "Project Parts" are total number of
parts for the particular QSP, i now have a form "frmTmManagers" with the
managers of the various departments on and i want to put in a total of
all the QSP parts from the "tblQSPTotals" in a text box on the
frmTmManagers.

Could you please give me suggestions/code that i could use

Thanks in advance

Tempy

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #1
6 1232
On Thu, 09 Jun 2005 09:13:55 GMT, Tempy <an*******@devdex.com> wrote:

I'm not sure what exactly you're trying to do, but DSum is a function
you can use to add up values.

-Tom.

good day,

As i have stated before i am a newbie at this game.

I have a table "tblQSPTotals" that has 6 different QSP's on field
"QSPName" and "Project Parts". Under "Project Parts" are total number of
parts for the particular QSP, i now have a form "frmTmManagers" with the
managers of the various departments on and i want to put in a total of
all the QSP parts from the "tblQSPTotals" in a text box on the
frmTmManagers.

Could you please give me suggestions/code that i could use

Thanks in advance

Tempy

*** Sent via Developersdex http://www.developersdex.com ***


Nov 13 '05 #2
Hi, I have tried the following in the control Source of the text box:-

=DSum("[Kufner]+[Steyn]+[Remondini]+[Stadler]","tblTotalByrSuppliers")

In Other words i need to add the value of [kufner] (1), the value of
[Steyn](0), [Remondini](0)& [Stadler](1), giving me a total of 2.

I know it is not correct, but maybe this will give you an idea of what i
am trying to achieve, maybe there is a way with code ?

Tempy

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #3
Hi I have eventually got it to work with the following:
=DSum("[Kufner]+[Stadler]","tblTotalByrSuppliers")

However if i add any fields with no value in it does not like it, could
somebody please give me some advice

Tempy

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #4
Sounds to me like you need to restructure your tables and have a child
table linked to a parent. Then it would be easy to total up without
having to deal with nulls across multiple fields in a DSum.

Nov 13 '05 #5
Hi Ozzone, Excuse the ignorance but i am fairly new at this game, could
you explain ?

Tempy

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #6
Sorry i forgot to mention that this table is made from a Query, i do not
know if that makes a difference ?

Tempy

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #7

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

Similar topics

11
by: Bobbak | last post by:
Hello All, I have these tables (lets call it ‘EmpCalls', ‘EmpOrders', and ‘Stats') that each contain the list of EmployeeIDs, I want to be able to create a Module in which I could call in my VB...
5
by: Sami | last post by:
Please bear with me, and if you answer this question, please do it step by step. I am new at Access, not at all sophisticated. I am using Office XP. This will need to be read in Access for...
2
by: Robin S. | last post by:
This is an "Add product" form. The user will enter a ProductNo (catalog number), select a Product Class (from cascading combo boxes) and then click a button to create the product. When a...
6
by: Robin S. | last post by:
**Eric and Salad - thank you both for the polite kick in the butt. I hope I've done a better job of explaining myself below. I am trying to produce a form to add products to a table (new...
3
by: GL | last post by:
Hi, Is there a way to add a field to an existing table using a query of some sort (without needing to manually add a field to the table). I know how to do it with a make table query, but I have...
1
by: Randy | last post by:
I built and employment report from the employment table. I then had to add a field to the table. I now need to add that field to the report. I can't seem to be able to do that by clicking on...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
20
by: Bryan | last post by:
hello all... im trying to add a record to an sql db on ms sql server 2000, using vb.net. seems to be working.. except for one thing, one of the columns in the database is a bit datatype, and...
12
by: Art | last post by:
Hi everyone I was hoping someone might be able to help me with this. I'm just starting to try to work with MS Access tables through VB.net. In Access I can take an existing table and add a new...
9
by: sellcraig | last post by:
Microsoft access 2 tables table "data main" contains a field called "code" table "ddw1" is created from a make table query of "data main" Goal- the data in "code" field in needs to...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.