![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've a query where I keep some fields: btw excl incl total I use this query as subform, now here 's my problem I've got a textfield 'total' where I want to calculate the total from the query for the loaded form. I've used the expressionbuilder to perform this: =Sum([subfrm FaktuurTest].Form!Inclusief) When I see the form in 'formview' I get the following message: #Error Someone got any id? |
#3
| |||
| |||
|
|
I've a query where I keep some fields: btw excl incl total I use this query as subform, now here 's my problem I've got a textfield 'total' where I want to calculate the total from the query for the loaded form. I've used the expressionbuilder to perform this: =Sum([subfrm FaktuurTest].Form!Inclusief) When I see the form in 'formview' I get the following message: #Error Someone got any id? |
#4
| |||
| |||
|
|
Is [subfrm FaktuurTest] a Subform? If so, you must refer to it like this: Forms("NameOfTheParentForm").Controls("NameOfTheSu bformCONTROL).Form.Control s("NameOfYourControl") |
|
"Bart" <bart.gybels (AT) skynet (DOT) be> wrote in message news:84901bde.0312020214.af1480f (AT) posting (DOT) google.com... I've a query where I keep some fields: btw excl incl total I use this query as subform, now here 's my problem I've got a textfield 'total' where I want to calculate the total from the query for the loaded form. I've used the expressionbuilder to perform this: =Sum([subfrm FaktuurTest].Form!Inclusief) When I see the form in 'formview' I get the following message: #Error Someone got any id? |
#5
| |||
| |||
|
|
bart.gybels (AT) skynet (DOT) be (Bart) wrote in message news:<84901bde.0312020214.af1480f (AT) posting (DOT) google.com>... I've a query where I keep some fields: btw excl incl total I use this query as subform, now here 's my problem I've got a textfield 'total' where I want to calculate the total from the query for the loaded form. I've used the expressionbuilder to perform this: =Sum([subfrm FaktuurTest].Form!Inclusief) When I see the form in 'formview' I get the following message: #Error Someone got any id? Hello Bart. I'm not quite sure where you have your field located with the above expression. Sounds like it's on the main form and not the subform. Perhaps you should make sure it's in the subform's "Form Footer" to get the sum of the required field data. Then, on the main form set a reference to the text field on the sumform. Example for Sub Form: Make a text box called txtSumData Source: =Sum([subfrm FaktuurTest].Form!Inclusief) Example for Main Form: =[subfrmName].[Form]![txtSumData] Regards, Ray |
![]() |
| Thread Tools | |
| Display Modes | |
| |