A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

calculated field from sub form datasheet



 
 
Thread Tools Display Modes
  #1  
Old August 30th, 2006, 08:57 PM posted to microsoft.public.access.forms
segurarl
external usenet poster
 
Posts: 28
Default calculated field from sub form datasheet

My form has this format:
1) Main form...Single form
- sub-form1.....datasheet
- sub-form2......datasheet

sub-form1 has a numeric field: Order
sub-form2 has numeric field: Received

I need a field in sub-form1 to calculate the total of [sub-form2].[Received]
and compare it to 'Order' so I know when the order has been completed.

I have tried a field 'subTotal' in the footer of sub-form2:
'=sum([Received]), but when I put a reference to 'subTotal' in sub-form1 I
get '#Error'.

Thank you for your help!
  #2  
Old August 30th, 2006, 09:11 PM posted to microsoft.public.access.forms
Amy E. Baggott
external usenet poster
 
Posts: 79
Default calculated field from sub form datasheet

You can try this format:

=Forms![main form]![sub-form2].Form!sub-form2

This usually works for me.

--
Amy E. Baggott

"I''m going crazy and I''m taking all of you with me!" -- Linda Grayson


"segurarl" wrote:

My form has this format:
1) Main form...Single form
- sub-form1.....datasheet
- sub-form2......datasheet

sub-form1 has a numeric field: Order
sub-form2 has numeric field: Received

I need a field in sub-form1 to calculate the total of [sub-form2].[Received]
and compare it to 'Order' so I know when the order has been completed.

I have tried a field 'subTotal' in the footer of sub-form2:
'=sum([Received]), but when I put a reference to 'subTotal' in sub-form1 I
get '#Error'.

Thank you for your help!

  #3  
Old August 30th, 2006, 10:14 PM posted to microsoft.public.access.forms
segurarl
external usenet poster
 
Posts: 28
Default calculated field from sub form datasheet

Thank you!
I have tried it before but it doens't work when I try to get the total the
value on the field

"Amy E. Baggott" wrote:

You can try this format:

=Forms![main form]![sub-form2].Form!sub-form2

This usually works for me.

--
Amy E. Baggott

"I''m going crazy and I''m taking all of you with me!" -- Linda Grayson


"segurarl" wrote:

My form has this format:
1) Main form...Single form
- sub-form1.....datasheet
- sub-form2......datasheet

sub-form1 has a numeric field: Order
sub-form2 has numeric field: Received

I need a field in sub-form1 to calculate the total of [sub-form2].[Received]
and compare it to 'Order' so I know when the order has been completed.

I have tried a field 'subTotal' in the footer of sub-form2:
'=sum([Received]), but when I put a reference to 'subTotal' in sub-form1 I
get '#Error'.

Thank you for your help!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.