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

Sum in SubSubform #Error Message

Hello together,

I want to calculate a sum in subform from a subsubform (sounds
complicated?) but I get an #error but... see below

My database:
I have a main form with members,
each members has in a subform from 0-x projects (in the subform)
each project can have from 0-x subprojects with working days.

What I want:
Now I want to calculate for each project (subform) the total number of
working days.
I calculated in the footer a unbound field to sum (=Sum([txtDays]),
another in the subform which links to this one (=[Project subform].
[Form]![txt_sumDays]).

Problem:
If I only open the subform it calculates the days. If I open the main
form an #error message occures BUT if i click in the subform to the
projects it calculates the days for each row I click?!?!? FURHTER if i
open the subform in the datasheet view the #error message occurs as
well.

Thanks a lot for any suggestions!

Cheers
Andreas
Feb 20 '08 #1
2 2103
Hi Andreas,

The way I've got around this in the past is to address the record source of
the unbound field on the subform from the main form.

In your case this would look something like:

=Forms![Main Form]![Project subform]![Sub Sub Form]![txt_sumDays]

Andy

Andreas wrote:
>Hello together,

I want to calculate a sum in subform from a subsubform (sounds
complicated?) but I get an #error but... see below

My database:
I have a main form with members,
each members has in a subform from 0-x projects (in the subform)
each project can have from 0-x subprojects with working days.

What I want:
Now I want to calculate for each project (subform) the total number of
working days.
I calculated in the footer a unbound field to sum (=Sum([txtDays]),
another in the subform which links to this one (=[Project subform].
[Form]![txt_sumDays]).

Problem:
If I only open the subform it calculates the days. If I open the main
form an #error message occures BUT if i click in the subform to the
projects it calculates the days for each row I click?!?!? FURHTER if i
open the subform in the datasheet view the #error message occurs as
well.

Thanks a lot for any suggestions!

Cheers
Andreas
--
Message posted via http://www.accessmonster.com

Feb 20 '08 #2
Hi Andy,

thanks for the answer, but it doesnt work...
=Forms![Main Form]![Project subform]![Sub Sub Form]![txt_sumDays]
if I do it like that it will give me "#Name?"

so I deleted [Main Form] (in My case [Members]), but then I have same
same problem as before (#Error) calculates only when I click on the
record in the subform.

Andreas

On 20 Feb., 15:40, "AndyB via AccessMonster.com" <u41372@uwewrote:
Hi Andreas,

The way I've got around this in the past is to address the record source of
the unbound field on the subform from the main form.

In your case this would look something like:

=Forms![Main Form]![Project subform]![Sub Sub Form]![txt_sumDays]

Andy

Andreas wrote:
Hello together,
I want to calculate a sum in subform from a subsubform (sounds
complicated?) but I get an #error but... see below
My database:
I have a main form with members,
each members has in a subform from 0-x projects (in the subform)
each project can have from 0-x subprojects with working days.
What I want:
Now I want to calculate for each project (subform) the total number of
working days.
I calculated in the footer a unbound field to sum (=Sum([txtDays]),
another in the subform which links to this one (=[Project subform].
[Form]![txt_sumDays]).
Problem:
If I only open the subform it calculates the days. If I open the main
form an #error message occures BUT if i click in the subform to the
projects it calculates the days for each row I click?!?!? FURHTER if i
open the subform in the datasheet view the #error message occurs as
well.
Thanks a lot for any suggestions!
Cheers
Andreas

--
Message posted viahttp://www.accessmonster.com
Feb 21 '08 #3

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

Similar topics

10
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by...
9
by: Mairhtin O'Feannag | last post by:
Hello, We have two machines we wish to use DPF. They are both RH ES 2.1, with DB2 8.2. I read the documentation CAREFULLY, and added the following line to my db2nodes.cfg file : 1 egret 0
6
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
2
by: pietlinden | last post by:
I have a hopefully stupid question. First off, I'm trying to follow Keri Hardwick's instructions from here: http://www.mvps.org/access/forms/frm0031.htm I have a main/sub1/sub-subform:...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
4
by: Don Do | last post by:
Help I built a form/subform/subsubform setup using the access forms wizard. I have a table1 = parent, table2 = child, table3 = (grandchild?). There will be multiple records in table2 that tie...
4
by: kiwipedia | last post by:
Hi all I've got a subsubform called newsubCRBSI which sits on the subform called subfrmlines. Mousedown on newsubCRBSI.CRBSIDate nicely brings up a calendar on subfrmlines as below... ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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
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,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.