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  

Subform Calculations



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2006, 04:39 PM posted to microsoft.public.access.forms
awach
external usenet poster
 
Posts: 198
Default Subform Calculations

I have a continous subform and a calculated value (using one of the fields in
the subform) in the parent form. When I am on the first recrods of the
subform the calculated value is update when I tab to the next record.
However, when I'm on the last record, I can't tab anymore. If I press tab
and/or enter the calculated value in the parent field isn't updated. How can
I fix this?
  #2  
Old December 14th, 2006, 02:28 PM posted to microsoft.public.access.forms
Sprinks
external usenet poster
 
Posts: 531
Default Subform Calculations

awach,

Do a recalc in the subform's OnCurrent event and in the AfterUpdate event(s)
of any controls involved in the calculation. Then the result will always
display correctly.

For the OnCurrent event and any controls in the subform, the code to
recalculate the main form is:
Me![Parent].Form.Recalc

For any involved controls in the main form:
Me.Recalc

Hope that helps.
Sprinks

"awach" wrote:

I have a continous subform and a calculated value (using one of the fields in
the subform) in the parent form. When I am on the first recrods of the
subform the calculated value is update when I tab to the next record.
However, when I'm on the last record, I can't tab anymore. If I press tab
and/or enter the calculated value in the parent field isn't updated. How can
I fix this?

 




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 12:43 AM.


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