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

Sum([Fieldname]) within Footer of Continuous Form Problem

129 100+
Hi i have a main form and sub form with a one to many relationship. The sub-form is constructured of four fields, StaffUserID, AdminID, Hours Assigned and Comment. I have a combo box for the Admin Duties which saves the AdminID in the appropriate field. The Hours Assigned Control Source is based on the Admin Duties combo box, with a code of =[cboAdminDuties].[Column](2). The Format of the Hours Assigned is Integer with input mask of 9999. As i have a list of many Admin Duties i want to add all the Hours Assigned together so i put a text box in the footer of the sub-form called txtTotalHours and applied a control source of =Sum([txtHoursAssigned]) however i receive an Error message. Can anyone tell me why?
Jul 24 '09 #1
2 3898
puppydogbuddy
1,923 Expert 1GB
The why is because you need to sum the what is contained in the underlying control source.
=Sum([HoursAssigned])
Jul 25 '09 #2
Constantine AI
129 100+
Thanks for that it worked a treat.
Jul 25 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Jim Cser | last post by:
Hello- I have a function to generate a multi-dimensional array, which then gets summed over one axis. The problem is that the dimensions are large, and I run out of memory when I create the...
0
by: Mark | last post by:
I am having a problem getting my resultset to come out right. I am looking to join 3 tables getting a sum out of two and data out of the the third: Tables: users debits credits These...
3
by: Bryce (Work) | last post by:
Here is the xml I'm working with: <result> <EFORM> <testNode> <section1> <string1>ADAM</string1> <integer1>55</integer1> </section1> </testNode>
1
by: HaggMan | last post by:
I have two tables for holding questions and the corresponding answers of several users. Table 1 (matt_q as q): id, secid, weight Table 2 (matt_ans as a): id, qid, userid, answer Answer...
0
by: farid25 | last post by:
my data base consits of five tables dbo.t_students lists all students, every student who take a course gets a 100 points, currently there are there rows in dbo.t_projects project id...
1
by: kcddoorman | last post by:
You tried to execute a query that does not include the specified expression <KCD Record> as part of an aggregate function. (Error 3122) KCD Record is my table. I need to have a total box on my...
2
by: glen.riddell | last post by:
I have 2 queries, for the sake of this post I will refer to them as query1 and query2. Basically query1 returns a number of results from tables which are grouped and then query2 queries query1 and...
14
by: rahia307 | last post by:
i have two tables one table contain the basic information about the users. second table contain amount information of users. i want to sum of amount of users Country vise. i have country id in...
1
by: calvinkwoo3000 | last post by:
Hi i have a table as below year month income source ___________________________ 2008 06 100 source1 2008 06 80 source2 2008 06 200 source1 2008 06 100 source2 ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.