A
Atlas
Here why:
Form (table A) with subform (table B,) 1 to N relationship;
(A) - ID_A - Description - Total
(B) - ID_A- ID_B - Description - Amount
A-> Total must be as the sum of (1 to N) of B->Amount
1) Stuffing checks in the mainform afterupdate doesn't help a lot, cause
users can change amounts in the subform without touching the record in the
mainform
2) Using Allen Brown's tip to hold last ID in main record and check if it
changes in the OnCurrent event, gives unpredictable results.
3) Enforcing recordcount > 1 on (B) doesn't allow user to move to the
subform to enter data.
What a mess!
Help appreciated
P.S. - Really don't understand why designers of Access left out such an
important event........
Form (table A) with subform (table B,) 1 to N relationship;
(A) - ID_A - Description - Total
(B) - ID_A- ID_B - Description - Amount
A-> Total must be as the sum of (1 to N) of B->Amount
1) Stuffing checks in the mainform afterupdate doesn't help a lot, cause
users can change amounts in the subform without touching the record in the
mainform
2) Using Allen Brown's tip to hold last ID in main record and check if it
changes in the OnCurrent event, gives unpredictable results.
3) Enforcing recordcount > 1 on (B) doesn't allow user to move to the
subform to enter data.
What a mess!
Help appreciated
P.S. - Really don't understand why designers of Access left out such an
important event........