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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

'Lord Help Me' Project



 
 
Thread Tools Display Modes
  #11  
Old October 16th, 2006, 05:39 PM posted to microsoft.public.access.tablesdbdesign
John Vinson
external usenet poster
 
Posts: 4,033
Default 'Lord Help Me' Project

On Mon, 16 Oct 2006 06:08:02 -0700, laura reid
wrote:

Yes, requery is the way I went. However since the user is never permitted to
change any fields in the main form, I ended up placeing a button on the main
form footer and after all the changes in the various subforms are made, the
user then presses the button to get a new total.


Just FWIW, you can put a line

Parent.Requery

or possibly also or instead

Parent.Recalc

in the AfterUpdate event of each Subform which contributes to the form
total; this will make the button press unnecessary.

John W. Vinson[MVP]
  #12  
Old October 16th, 2006, 06:45 PM posted to microsoft.public.access.tablesdbdesign
laura reid
external usenet poster
 
Posts: 36
Default 'Lord Help Me' Project

You people ROCK! Thanks so much, I'll give this a try at work tomorrow.
Should you get bored here, I've posted a request for help with a query I want
to design in the query newsgroup

with much gratitude,
Laura

"John Vinson" wrote:

On Mon, 16 Oct 2006 06:08:02 -0700, laura reid
wrote:

Yes, requery is the way I went. However since the user is never permitted to
change any fields in the main form, I ended up placeing a button on the main
form footer and after all the changes in the various subforms are made, the
user then presses the button to get a new total.


Just FWIW, you can put a line

Parent.Requery

or possibly also or instead

Parent.Recalc

in the AfterUpdate event of each Subform which contributes to the form
total; this will make the button press unnecessary.

John W. Vinson[MVP]

  #13  
Old October 19th, 2006, 01:10 PM posted to microsoft.public.access.tablesdbdesign
strive4peace
external usenet poster
 
Posts: 1,670
Default 'Lord Help Me' Project

Hi Laura,

as an add-on to what John said, if you are using SUM in a control, it
acts on SAVED records... ever notice the pencil icon in the gray record
selector area to the left of the record? That means that data is not
yet written... a solid right-pointed triangle signifies no changes have
been made to the record since it was saved

if a field is used in a calculation, on the AfterUpdate event of its
control:

me.dirty = false

will save the record

if you are moving out of a subform, you might put this on the OnExit
event of the subform control:

if me.dirty then me.dirty = false

btw, my attention was drawn to this thread because of the excellence
that BruceM has with words...

Warm Regards,
Crystal
*
(: have an awesome day
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*



laura reid wrote:
You people ROCK! Thanks so much, I'll give this a try at work tomorrow.
Should you get bored here, I've posted a request for help with a query I want
to design in the query newsgroup

with much gratitude,
Laura

"John Vinson" wrote:

On Mon, 16 Oct 2006 06:08:02 -0700, laura reid
wrote:

Yes, requery is the way I went. However since the user is never permitted to
change any fields in the main form, I ended up placeing a button on the main
form footer and after all the changes in the various subforms are made, the
user then presses the button to get a new total.

Just FWIW, you can put a line

Parent.Requery

or possibly also or instead

Parent.Recalc

in the AfterUpdate event of each Subform which contributes to the form
total; this will make the button press unnecessary.

John W. Vinson[MVP]

 




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 04:44 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.