473,473 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sum the value on a continuous form

166 New Member
Good Morning,

I am trying to get the sum of values on a subform, that is a
continuous form.

The name of the main form is : F_MixDesign
Subform is : SF_MixSample
Subform control name is: DM_Yield

the text box that I am storing the value in is an unbound text box.
the record source is:
=Sum(Forms![F_MixDesign]![SF_MixSample].Form![DM_yield]), which is
giving me a #Error. Should I be using sum or Dsum? I have tried both
and neither have worked. the DM_Yield is also an unbound calculated
field, whose record source is a function I created. The functions
works fine and returns to me the correct calculations, but now I need
a total sum of that row. How can I restructure my calculation to
return to me the correct information?
Dec 3 '08 #1
4 8231
ChipR
1,287 Recognized Expert Top Contributor
I believe you can only Sum([FieldName]), you can't Sum(ControlName). But if you set the subform's recordsource to a query with a calculated field, you can sum that field. DSum is when you need to specify criteria, like where condition.
Dec 3 '08 #2
csolomon
166 New Member
Hi ChipR,

Thank you for your response.

I have tried Sum([FieldName]) in the subform footer, and that gave me an error as well. As I stated, this calculation is done on the form, via a function, which is why I can't use a query to calculate the field. Any ideas?
Dec 3 '08 #3
ChipR
1,287 Recognized Expert Top Contributor
Calculated fields in a query can be defined by a function and based on another field. Like
Total: MyFunction([field1],[field2])

I'm working on this myself for totals of calculated columns on a subform, but I just don't want to put all that mess in the query, so I'm leaving it off for now. I'll let you know if I get anything easier to work, though.
Dec 3 '08 #4
csolomon
166 New Member
Hi ChipR,

I took your advice about being able to call a function in a query, and you were right! it worked perfectly (after I modified my argument names to match those in the query). It works!

Thank you
Dec 3 '08 #5

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

Similar topics

3
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? ...
1
by: Giulio | last post by:
Hello, I have a continuous form with a combo box inside. From the combo box I can pick some values which, by the "after-update" event, change some other combo box values determined by a query....
3
by: Mark | last post by:
Hi there, I have a subform, set as a continuous form. When a user selects a particular record in that subform, how can I make that particular record stand out (color or font change, size, etc) from...
3
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
2
by: ThompsonJessical | last post by:
I am trying to use a button with the vba coding for SendObject Function to email a specific report based on the value of another field of the current record. The form is a continuous form and...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
2
by: rahuljpmc | last post by:
Hi, I am using a continuous form deriving values from a pre-populated table consisting of ids, property type and site area Ids and property type are in the main body of the form, whereas site...
2
by: Steve | last post by:
I have a continuous form showing Product Code and Product Name. Product Code is five digits and is sequential. I have a textbox in the form header. What is the code to scroll the continuous form so...
5
by: ramprat | last post by:
Hi, Using Access 2003 how do you read the value from a particular cell (row/column combination) in the current record of a continuous form and use this value elsewhere? For example, how do you...
8
by: Steffen Beck | last post by:
Hi NG I need some help with a problem on my forms. If I have 2 related tables, for instance companies and employees, and want to display all companies on a continuous form with their...
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,...
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...
1
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.