Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Requery directed to a specific control fires unwanted total form refresh
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric  
View profile  
 More options Feb 11, 12:00 pm
Newsgroups: comp.databases.ms-access
From: Eric <eaho...@gmail.com>
Date: Sat, 11 Feb 2012 09:00:34 -0800 (PST)
Local: Sat, Feb 11 2012 12:00 pm
Subject: Requery directed to a specific control fires unwanted total form refresh
I've got a unbounded form with 2 subforms.  When an event occurs in 1
form, on update, it tells the parent main form to refresh a single
control.  Strangely, rather than the refresh only being for the NAMED
control on the parent, all the controls on the parent form get
refreshed which is not desired.

Any thoughts why this happening?  Or how one might program around such.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric  
View profile  
 More options Feb 11, 12:38 pm
Newsgroups: comp.databases.ms-access
From: Eric <eaho...@gmail.com>
Date: Sat, 11 Feb 2012 09:38:12 -0800 (PST)
Local: Sat, Feb 11 2012 12:38 pm
Subject: Re: Requery directed to a specific control fires unwanted total form refresh
I have an answer: I post it here should anybody else ever be as
stumped as I was.

To help understand, this is what I have:-

Form:
+-------------------------
|SubForm1
|+---------------------
|| list of idStmt, sqStmt
|+-----------------

|SubForm2
|+---------------------
|| list of amEntry
||------------------
||Total (amEntry)
|+-----------------
|
|idStmtCurrent: <value echoed from SubForm1>
|sqStmt: <value echoed from SubForm1>
|amOpen: <=function(sqStmt)>
|amTotal: <=SubForm2.Total(amEntry)>
|amBalance: <=amOpen - amTotal>
|
| <Now()>
+-------------------------

I believe what is happening is that a change in SubForm 2 (which has a
subtotal) causes a control on the parent form to reset (it shows the
"total" from Subform 2).

That in turn is referenced by a control (that subtracts the value from
the "total" that comes from the Subform) from another control.

Access cascades the refresh I guess and goes back to the other control
that also supplies data into the calculation.  In turn, that goes back
to another "reference" that points to the currently selected value on
SubForm 1 (which was not part of the key).

What was still strange is that other fields on the form (I set a test
field's data source to =Now()) were also getting refreshed.

I changed the reference to another field (now the "idStmt (key)" that
is also echoed back from subform1), and the cascade refreshing stopped.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »