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

formtotal

Does anyone know a way to view a total of a subform that has datasheet
format?

Maarten
Jun 9 '06 #1
4 1158
Not within the subform.

However, in the main form you can put a textbox with this controlsource:

=mysub.Form!txtMyTotal

(include the equal sign)

This "reaches down" into the subform that copies the sum from the summing
textbox there up to the main form control.

Just put the summing textbox (here it's txtMyTotal in the form footer of the
subform, even though the subform will be in datasheet and you will not see
the total anywhere in the subform.
Jun 9 '06 #2
Thanx! That works very good!
Exept when the field to total is a calculated field. Do you also have a
solution for this problem.


"Rick Wannall" <wa*****@notadomain.de> wrote in message
news:aC********************@newssvr29.news.prodigy .net...
Not within the subform.

However, in the main form you can put a textbox with this controlsource:

=mysub.Form!txtMyTotal

(include the equal sign)

This "reaches down" into the subform that copies the sum from the summing
textbox there up to the main form control.

Just put the summing textbox (here it's txtMyTotal in the form footer of
the
subform, even though the subform will be in datasheet and you will not see
the total anywhere in the subform.

Jun 10 '06 #3
"Verkoop" wrote
Thanx! That works very good!
Exept when the field to total is a calculated
field. Do you also have a solution for this
problem.


The Sum function works fine on a calculated _Field_, which you would
calculate in the Query you use as Record Source.

Sum does not work on a calculated _Control_, which you would calculate in
its Control Source.

Generally, you can create a Sum Control where the calculation for the
individual Controls is the argument to Sum, such as:

= Sum([Units]*[CostPerUnit])
Larry Linson
Microsoft Access MVP
Jun 10 '06 #4
Thanx that works perfect.

"Larry Linson" <bo*****@localhost.not> wrote in message
news:AMEig.2035$X02.37@trnddc02...
"Verkoop" wrote
Thanx! That works very good!
Exept when the field to total is a calculated
field. Do you also have a solution for this
problem.


The Sum function works fine on a calculated _Field_, which you would
calculate in the Query you use as Record Source.

Sum does not work on a calculated _Control_, which you would calculate in
its Control Source.

Generally, you can create a Sum Control where the calculation for the
individual Controls is the argument to Sum, such as:

= Sum([Units]*[CostPerUnit])
Larry Linson
Microsoft Access MVP

Jun 14 '06 #5

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

Similar topics

8
by: William Starr Moake | last post by:
I'm trying to script a download counter that will display the total number on the download page without server-side scripting. Below is my very incomplete beginning. It returns no errors, but...
2
by: staeri | last post by:
I have an unknown number of textboxes which I want to sum. They are named something like this: "ctl00$ContentPlaceHolder1$DataList1$ctl03$DataList2$ctl03$txtSumB" The only thing i know for...
4
by: JLupear | last post by:
My friend and I are trying to start a business and are writing a website of our own. We have been trying to create an online estimator and are having trouble with writing the javascript that is to...
6
by: JLupear | last post by:
I have written a code (a translation of my first one) that is not working. I did a user defined function that is used on 'onsubmit'. It should total the value from the form selections and...
5
by: alanb | last post by:
Hi, hope someone can help, I need to be able to keep a running total of radio buttons selected, as a user goes through a set of 16 questions, devided in to 4 catorgories, then on "submit" have the...
1
by: ballygowanboy | last post by:
i'll try and explain this as best i can. i have a form with 3 radio buttons. they have 3 values, 0, 5 and 10. when the checkbox is checked, it adds that ammount to the total figure,...
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
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
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
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...
0
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...
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.