Re: Halt code execution until requery is finished.
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Mon, 13 Feb 2006 12:54:13 -0600
Al Camp wrote:
Is there some code, or technique that I can use that will force a subform
requery to finish completely, before subsequent code runs?
Sequence of code (aircode)
First button click = increment a qty by +1
Make a decision about (qty +1)
Requery subform to reflect new qty
Second Button click = increment a qty by +1
**Make a decision about (qty + 1) (**Problem: the subform has not finished
the requery,
so my decision coding returns erroneous values from the requeried subform.)
Tried disabling/enabling the button, but it enables the button before the
Requery is complete.
You can do a MoveLast on the subform's RecordsetClone to
force the subform's record source to completely load.
However, that may not force all controls on the subform to
complete their recalculation. So a total using an aggregate
function may still be out of sync.
--
Marsh
MVP [MS Access]
.
- Follow-Ups:
- Re: Halt code execution until requery is finished.
- From: Al Camp
- Re: Halt code execution until requery is finished.
- References:
- Halt code execution until requery is finished.
- From: Al Camp
- Halt code execution until requery is finished.
- Prev by Date: Data type mismatch in criteira expression - HUH?
- Next by Date: Re: Identifying Controls in the Detail of a Continuous Form Sub Form
- Previous by thread: Halt code execution until requery is finished.
- Next by thread: Re: Halt code execution until requery is finished.
- Index(es):