473,836 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2127
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.c om" <u41372@uwewrot e:
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.accessmonst er.com
Feb 21 '08 #3

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

Similar topics

10
10830
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 the browser, followed by a descriptive error message: Microsoft VBScript runtime error '800a000b' Division by zero followed by the number of the error-making line
9
4917
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
8476
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 by VisitDt" I'm getting this error message: Errno is 2465. Err.description is "Can't find field '|' referred to in your expression"
2
2097
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: Contact/Donation/DonationType (I'm using Rebecca Riordan's subclassing article, which works great until I put the Donation Parent (with the Donation Child inside it)). Once I nest so there are 3 forms, one inside another:
8
10026
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 the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server Error'."
4
2668
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 to table1, and multiple records in table 3 that tie to table2. Both on "1 to many" joins. Each of the forms are bound to the fields in the respective tables. The subform & subsubform are datasheet view. When I enter any data, I
4
2229
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... Private Sub CRBSIDate_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) Me.Parent!Calendar4.Visible = True Me.Parent!Calendar4.SetFocus
2
19507
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
0
9671
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10558
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10600
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10257
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9387
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7794
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5651
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4022
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.